summaryrefslogtreecommitdiff
path: root/actions/apistatusesretweets.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/apistatusesretweets.php
parenta12474a99d0322123b1c8318dfa609d5d5392c7f (diff)
* i18n/L10n fixes.
* translator documentation updated. * superfluous whitespace removed.
Diffstat (limited to 'actions/apistatusesretweets.php')
-rw-r--r--actions/apistatusesretweets.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/actions/apistatusesretweets.php b/actions/apistatusesretweets.php
index a79d43168..cc7caee19 100644
--- a/actions/apistatusesretweets.php
+++ b/actions/apistatusesretweets.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 ApiStatusesRetweetsAction extends ApiAuthAction
{
const MAXCOUNT = 100;
@@ -57,9 +56,7 @@ class ApiStatusesRetweetsAction extends ApiAuthAction
* @param array $args $_REQUEST args
*
* @return boolean success flag
- *
*/
-
function prepare($args)
{
parent::prepare($args);
@@ -69,6 +66,7 @@ class ApiStatusesRetweetsAction extends ApiAuthAction
$this->original = Notice::staticGet('id', $id);
if (empty($this->original)) {
+ // TRANS: Client error displayed trying to display redents of a non-exiting notice.
$this->clientError(_('No such notice.'),
400, $this->format);
return false;
@@ -94,7 +92,6 @@ class ApiStatusesRetweetsAction extends ApiAuthAction
*
* @return void
*/
-
function handle($args)
{
parent::handle($args);
@@ -109,6 +106,7 @@ class ApiStatusesRetweetsAction extends ApiAuthAction
$this->showJsonTimeline($strm);
break;
default:
+ // TRANS: Client error displayed when trying to handle an unknown API method.
$this->clientError(_('API method not found.'), $code = 404);
break;
}