summaryrefslogtreecommitdiff
path: root/actions/apimediaupload.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-25 13:08:57 -0700
committerBrion Vibber <brion@pobox.com>2010-10-25 13:08:57 -0700
commitca489631db840e33757a71a7e4cb56b187c182d3 (patch)
tree92c71b81b6870a8fd2d9c94bed8571b653d95413 /actions/apimediaupload.php
parent90c87553ee7566593529199374215ae80bb3e209 (diff)
parent01637bcd32921d6857fb7f5c0bbd40fba6bdb830 (diff)
Merge branch '0.9.x' into 1.0.x
Conflicts: actions/subscriptions.php lib/router.php lib/xmppmanager.php lib/xmppoutqueuehandler.php
Diffstat (limited to 'actions/apimediaupload.php')
-rw-r--r--actions/apimediaupload.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/actions/apimediaupload.php b/actions/apimediaupload.php
index 54d7fda68..a33771cae 100644
--- a/actions/apimediaupload.php
+++ b/actions/apimediaupload.php
@@ -78,9 +78,11 @@ class ApiMediaUploadAction extends ApiAuthAction
&& empty($_POST)
&& ($_SERVER['CONTENT_LENGTH'] > 0)
) {
- $msg = _('The server was unable to handle that much POST ' .
- 'data (%s bytes) due to its current configuration.');
-
+ // TRANS: Client error displayed when the number of bytes in a POST request exceeds a limit.
+ // TRANS: %s is the number of bytes of the CONTENT_LENGTH.
+ $msg = _m('The server was unable to handle that much POST data (%s byte) due to its current configuration.',
+ 'The server was unable to handle that much POST data (%s bytes) due to its current configuration.',
+ intval($_SERVER['CONTENT_LENGTH']));
$this->clientError(sprintf($msg, $_SERVER['CONTENT_LENGTH']));
return;
}