X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fgroupqueue.php;h=c50eff36f83c5bc9279bacdc5d3095db15000ec0;hb=c95f74018d8e997fabc07a42afb75e39c769531f;hp=2a7239400e442bfe1401355c2b252d1c03431e5e;hpb=c227045975905ba0cb690af95baf2cc471974105;p=quix0rs-gnu-social.git diff --git a/actions/groupqueue.php b/actions/groupqueue.php index 2a7239400e..c50eff36f8 100644 --- a/actions/groupqueue.php +++ b/actions/groupqueue.php @@ -53,7 +53,7 @@ class GroupqueueAction extends GroupAction } // @todo FIXME: most of this belongs in a base class, sounds common to most group actions? - function prepare($args) + protected function prepare(array $args=array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; @@ -69,36 +69,31 @@ class GroupqueueAction extends GroupAction $args['page'] = $this->page; } common_redirect(common_local_url('groupqueue', $args), 301); - return false; } if (!$nickname) { // TRANS: Client error displayed when trying to view group members 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 trying to view group members for a non-existing 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 trying to view group members for an object that is not a group. $this->clientError(_('No such group.'), 404); - return false; } $cur = common_current_user(); if (!$cur || !$cur->isAdmin($this->group)) { // TRANS: Client error displayed when trying to approve group applicants without being a group administrator. $this->clientError(_('Only the group admin may approve users.')); - return false; } return true; } @@ -119,9 +114,9 @@ class GroupqueueAction extends GroupAction } } - function handle($args) + protected function handle() { - parent::handle($args); + parent::handle(); $this->showPage(); } @@ -132,12 +127,6 @@ class GroupqueueAction extends GroupAction _('A list of users awaiting approval to join this group.')); } - function showObjectNav() - { - $nav = new GroupNav($this, $this->group); - $nav->show(); - } - function showContent() { $offset = ($this->page-1) * PROFILES_PER_PAGE;