X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fblockedfromgroup.php;h=a2e7c5767f64be9610681f638be8ef899140ff0a;hb=d816af9aa9ac1e41f0aa4f580ab36bdf043cc3b5;hp=07ed41e4142642d76f27b17aafeb53751915be26;hpb=cb183359e23ae7a5cfb483fa06c6c4b7a8b05fff;p=quix0rs-gnu-social.git diff --git a/actions/blockedfromgroup.php b/actions/blockedfromgroup.php index 07ed41e414..a2e7c5767f 100644 --- a/actions/blockedfromgroup.php +++ b/actions/blockedfromgroup.php @@ -49,7 +49,7 @@ class BlockedfromgroupAction extends GroupAction return true; } - function prepare($args) + protected function prepare(array $args=array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; @@ -65,29 +65,25 @@ class BlockedfromgroupAction extends GroupAction $args['page'] = $this->page; } common_redirect(common_local_url('blockedfromgroup', $args), 301); - return false; } if (!$nickname) { // TRANS: Client error displayed when requesting a list of blocked users for a group without providing a group nickname. $this->clientError(_('No nickname.'), 404); - return false; } - $local = Local_group::staticGet('nickname', $nickname); + $local = Local_group::getKV('nickname', $nickname); if (!$local) { // TRANS: Client error displayed when requesting a list of blocked users for a non-local group. $this->clientError(_('No such group.'), 404); - return false; } - $this->group = User_group::staticGet('id', $local->group_id); + $this->group = User_group::getKV('id', $local->group_id); if (!$this->group) { // TRANS: Client error displayed when requesting a list of blocked users for a non-existing group. $this->clientError(_('No such group.'), 404); - return false; } return true; @@ -109,9 +105,9 @@ class BlockedfromgroupAction extends GroupAction } } - function handle($args) + protected function handle() { - parent::handle($args); + parent::handle(); $this->showPage(); } @@ -122,12 +118,6 @@ class BlockedfromgroupAction extends GroupAction _('A list of the users blocked from joining this group.')); } - function showObjectNav() - { - $nav = new GroupNav($this, $this->group); - $nav->show(); - } - function showContent() { $offset = ($this->page-1) * PROFILES_PER_PAGE;