X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fgroupbyid.php;h=befd526de11a6472e432ab1a7153d4866e65d7e2;hb=f25161140934c04e80ba039c3f6b4b91a61666a2;hp=f18e4540c05ac84b2d6db5a9c5d81e253eb43486;hpb=8f776ec12d4a6c73a1e65e8732bf12a583eb2445;p=quix0rs-gnu-social.git diff --git a/actions/groupbyid.php b/actions/groupbyid.php index f18e4540c0..befd526de1 100644 --- a/actions/groupbyid.php +++ b/actions/groupbyid.php @@ -57,12 +57,12 @@ class GroupbyidAction extends Action * * @return boolean true */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; } - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); @@ -71,17 +71,15 @@ class GroupbyidAction extends Action if (!$id) { // TRANS: Client error displayed referring to a group's permalink without providing a group ID. $this->clientError(_('No ID.')); - return false; } common_debug("Got ID $id"); - $this->group = User_group::staticGet('id', $id); + $this->group = User_group::getKV('id', $id); if (!$this->group) { // TRANS: Client error displayed referring to a group's permalink for a non-existing group ID. $this->clientError(_('No such group.'), 404); - return false; } return true; @@ -95,7 +93,7 @@ class GroupbyidAction extends Action * * @return void */ - function handle($args) + function handle(array $args=array()) { common_redirect($this->group->homeUrl(), 303); }