summaryrefslogtreecommitdiff
path: root/actions/apimediaupload.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-28 01:19:04 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-28 01:21:21 +0200
commit04ae500749ea2e5937ac1f28ef8c7edf4f99f0a1 (patch)
tree030549cd14592ca2f07c16babee27f0d67ddcf4a /actions/apimediaupload.php
parenta12474a99d0322123b1c8318dfa609d5d5392c7f (diff)
* i18n/L10n fixes.
* translator documentation updated. * superfluous whitespace removed.
Diffstat (limited to 'actions/apimediaupload.php')
-rw-r--r--actions/apimediaupload.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/actions/apimediaupload.php b/actions/apimediaupload.php
index a33771cae..0b08dbedf 100644
--- a/actions/apimediaupload.php
+++ b/actions/apimediaupload.php
@@ -43,7 +43,6 @@ require_once INSTALLDIR . '/lib/mediafile.php';
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class ApiMediaUploadAction extends ApiAuthAction
{
/**
@@ -57,7 +56,6 @@ class ApiMediaUploadAction extends ApiAuthAction
*
* @return void
*/
-
function handle($args)
{
parent::handle($args);
@@ -99,6 +97,7 @@ class ApiMediaUploadAction extends ApiAuthAction
if (isset($upload)) {
$this->showResponse($upload);
} else {
+ // TRANS: Client error displayed when uploading a media file has failed.
$this->clientError(_('Upload failed.'));
return;
}
@@ -126,7 +125,6 @@ class ApiMediaUploadAction extends ApiAuthAction
* Overrided clientError to show a more Twitpic-like error
*
* @param String $msg an error message
- *
*/
function clientError($msg)
{
@@ -140,5 +138,4 @@ class ApiMediaUploadAction extends ApiAuthAction
$this->elementEnd('rsp');
$this->endDocument();
}
-
}