X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapigroupshow.php;h=a1643302e1cab8b8ed11b51a484d403671efdf09;hb=9e89a177c76741f7e696f09d778bd8b151f84d3f;hp=15b9edb975543937c5ed178df2d8d425e26cbb9e;hpb=34a6624452e8b7f60b40181441c6ea2c8158379a;p=quix0rs-gnu-social.git diff --git a/actions/apigroupshow.php b/actions/apigroupshow.php index 15b9edb975..a1643302e1 100644 --- a/actions/apigroupshow.php +++ b/actions/apigroupshow.php @@ -59,7 +59,7 @@ class ApiGroupShowAction extends ApiPrivateAuthAction * * @return boolean success flag */ - function prepare($args) + protected function prepare(array $args=array()) { parent::prepare($args); @@ -74,12 +74,8 @@ class ApiGroupShowAction extends ApiPrivateAuthAction $args = array('id' => $alias->group_id, 'format' => $this->format); common_redirect(common_local_url('ApiGroupShow', $args), 301); } else { - $this->clientError( - // TRANS: Client error displayed when trying to show a group that could not be found. - _('Group not found.'), - 404, - $this->format - ); + // TRANS: Client error displayed when trying to show a group that could not be found. + $this->clientError(_('Group not found.'), 404); } return; } @@ -92,13 +88,11 @@ class ApiGroupShowAction extends ApiPrivateAuthAction * * Check the format and show the user info * - * @param array $args $_REQUEST data (unused) - * * @return void */ - function handle($args) + protected function handle() { - parent::handle($args); + parent::handle(); switch($this->format) { case 'xml': @@ -109,8 +103,7 @@ class ApiGroupShowAction extends ApiPrivateAuthAction break; default: // TRANS: Client error displayed when coming across a non-supported API method. - $this->clientError(_('API method not found.'), 404, $this->format); - break; + $this->clientError(_('API method not found.'), 404); } }