X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpeopletagged.php;h=d547866a3cb020a3a2654a007912a2a00e356409;hb=c909f351d07c50c433cd59fef00f41a67767ce9e;hp=92bfce6405101230b9ff3c06a09bc97b8c2252e1;hpb=2a4dc77a633cc78907934fd93200ac16d55be78e;p=quix0rs-gnu-social.git diff --git a/actions/peopletagged.php b/actions/peopletagged.php index 92bfce6405..d547866a3c 100644 --- a/actions/peopletagged.php +++ b/actions/peopletagged.php @@ -48,12 +48,12 @@ class PeopletaggedAction extends Action var $peopletag = null; var $tagger = null; - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; } - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; @@ -76,13 +76,11 @@ class PeopletaggedAction extends Action $args['page'] = $this->page; } common_redirect(common_local_url('peopletagged', $args), 301); - return false; } if (!$tagger) { // TRANS: Client error displayed when a tagger is expected but not provided. $this->clientError(_('No tagger.'), 404); - return false; } $user = User::getKV('nickname', $tagger); @@ -90,7 +88,6 @@ class PeopletaggedAction extends Action if (!$user) { // TRANS: Client error displayed when referring to non-existing user. $this->clientError(_('No such user.'), 404); - return false; } $this->tagger = $user->getProfile(); @@ -99,7 +96,6 @@ class PeopletaggedAction extends Action if (!$this->peopletag) { // TRANS: Client error displayed when referring to a non-existing list. $this->clientError(_('No such list.'), 404); - return false; } return true; @@ -121,7 +117,7 @@ class PeopletaggedAction extends Action } } - function handle($args) + function handle(array $args=array()) { parent::handle($args); $this->showPage();