X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapilistsubscriptions.php;h=480523033bbf9d119cb58bc2b0c1da8d4199c90d;hb=f0d762f1968fa0ac33b39d73cc9c0225c9e8a989;hp=764360e14915e47e55fe298faf453579a5683c39;hpb=cad040ce4e00ea66c062fefa744e3b540c29ae27;p=quix0rs-gnu-social.git diff --git a/actions/apilistsubscriptions.php b/actions/apilistsubscriptions.php index 764360e149..480523033b 100644 --- a/actions/apilistsubscriptions.php +++ b/actions/apilistsubscriptions.php @@ -48,7 +48,6 @@ class ApiListSubscriptionsAction extends ApiBareAuthAction * @return boolean success flag * */ - function prepare($args) { parent::prepare($args); @@ -69,12 +68,12 @@ class ApiListSubscriptionsAction extends ApiBareAuthAction * * @return void */ - function handle($args) { parent::handle($args); if (empty($this->user)) { + // TRANS: Client error displayed trying to perform an action related to a non-existing user. $this->clientError(_('No such user.'), 404, $this->format); return; } @@ -88,6 +87,7 @@ class ApiListSubscriptionsAction extends ApiBareAuthAction break; default: $this->clientError( + // TRANS: Client error displayed when coming across a non-supported API method. _('API method not found.'), 400, $this->format @@ -105,7 +105,6 @@ class ApiListSubscriptionsAction extends ApiBareAuthAction * * @return boolean is read only action? */ - function isReadOnly($args) { return true;