X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapilistmemberships.php;h=3d235c5d9379746cd13cd083a0b79c7892ff7efc;hb=4bda1b2a36300b7d7571464b5b26b152d268085e;hp=635f970e871fb717e9d00b17942f7f968de21ff0;hpb=f47027abbefe35d17df50c67eec7cd1156a5e39a;p=quix0rs-gnu-social.git diff --git a/actions/apilistmemberships.php b/actions/apilistmemberships.php index 635f970e87..3d235c5d93 100644 --- a/actions/apilistmemberships.php +++ b/actions/apilistmemberships.php @@ -43,7 +43,6 @@ require_once INSTALLDIR . '/lib/apibareauth.php'; * @link http://status.net/ * @see ApiBareAuthAction */ - class ApiListMembershipsAction extends ApiBareAuthAction { var $lists = array(); @@ -60,7 +59,6 @@ class ApiListMembershipsAction extends ApiBareAuthAction * @return boolean success flag * */ - function prepare($args) { parent::prepare($args); @@ -69,6 +67,7 @@ class ApiListMembershipsAction extends ApiBareAuthAction $this->user = $this->getTargetUser($this->arg('user')); 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; } @@ -87,7 +86,6 @@ class ApiListMembershipsAction extends ApiBareAuthAction * * @return void */ - function handle($args) { parent::handle($args); @@ -101,6 +99,7 @@ class ApiListMembershipsAction 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 @@ -118,7 +117,6 @@ class ApiListMembershipsAction extends ApiBareAuthAction * * @return boolean is read only action? */ - function isReadOnly($args) { return true;