X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpeopletagsbyuser.php;h=746310877427891d827cdd3eb3d356d1173ade0f;hb=7070a1448066e14bc30c360accf7b0a686628eab;hp=8b3a91917a5f0611b7fbebbc8b847edba393e67f;hpb=c00491cd7a29a9ef16d6e6bfa54505d4c9a522fe;p=quix0rs-gnu-social.git diff --git a/actions/peopletagsbyuser.php b/actions/peopletagsbyuser.php index 8b3a91917a..7463108774 100644 --- a/actions/peopletagsbyuser.php +++ b/actions/peopletagsbyuser.php @@ -68,7 +68,7 @@ class PeopletagsbyuserAction extends Action } } - function prepare($args) + function prepare(array $args = array()) { parent::prepare($args); @@ -116,7 +116,7 @@ class PeopletagsbyuserAction extends Action $user = common_current_user(); if ($this->arg('public')) { - $this->tags = $this->tagger->getLists(false, $offset, $limit); + $this->tags = $this->tagger->getLists(null, $offset, $limit); } else if ($this->arg('private')) { if (empty($user)) { // TRANS: Error message displayed when trying to perform an action that requires a logged in user. @@ -130,14 +130,14 @@ class PeopletagsbyuserAction extends Action $this->clientError(_('You cannot view others\' private lists'), 403); } } else { - $this->tags = $this->tagger->getLists(common_current_user(), $offset, $limit); + $this->tags = $this->tagger->getLists($this->scoped, $offset, $limit); } return true; } - function handle($args) + function handle() { - parent::handle($args); + parent::handle(); # Post from the tag dropdown; redirect to a GET