X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapigroupmembership.php;h=0e01f92f001dd1db76da5874b4feedba0bdb41f7;hb=a7a4eeef09ee8929bb9ca563eb2bc52d198d202f;hp=ed78d9eda8a27d588618b82cd0cd7e89ac41ebf8;hpb=34a6624452e8b7f60b40181441c6ea2c8158379a;p=quix0rs-gnu-social.git diff --git a/actions/apigroupmembership.php b/actions/apigroupmembership.php index ed78d9eda8..0e01f92f00 100644 --- a/actions/apigroupmembership.php +++ b/actions/apigroupmembership.php @@ -59,15 +59,14 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction * * @return boolean success flag */ - function prepare($args) + protected function prepare(array $args=array()) { parent::prepare($args); $this->group = $this->getTargetGroup($this->arg('id')); if (empty($this->group)) { // TRANS: Client error displayed trying to show group membership on a non-existing group. - $this->clientError(_('Group not found.'), 404, $this->format); - return false; + $this->clientError(_('Group not found.'), 404); } $this->profiles = $this->getProfiles(); @@ -80,13 +79,11 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction * * Show the members of the group * - * @param array $args $_REQUEST data (unused) - * * @return void */ - function handle($args) + protected function handle() { - parent::handle($args); + parent::handle(); // XXX: RSS and Atom @@ -98,13 +95,8 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction $this->showJsonUsers($this->profiles); break; default: - $this->clientError( - // TRANS: Client error displayed when coming across a non-supported API method. - _('API method not found.'), - 404, - $this->format - ); - break; + // TRANS: Client error displayed when coming across a non-supported API method. + $this->clientError(_('API method not found.'), 404); } }