X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpeopletaggroupnav.php;h=212a90586b096e4289c79f461c6ea72a7e6c3a5d;hb=7220b3ddd4a32b947e851c946cb6ad6146bebf7d;hp=3cfcb3cff37a47b6cb86d57d515f3c9e68b81389;hpb=b9eee437dd6d1b6fe6bc3e04993f339a1397d671;p=quix0rs-gnu-social.git diff --git a/lib/peopletaggroupnav.php b/lib/peopletaggroupnav.php index 3cfcb3cff3..212a90586b 100644 --- a/lib/peopletaggroupnav.php +++ b/lib/peopletaggroupnav.php @@ -61,7 +61,7 @@ class PeopletagGroupNav extends Widget * * @param Action $action current action, used for output */ - function __construct($action=null) + function __construct(Action $action=null) { parent::__construct($action); $this->action = $action; @@ -79,11 +79,17 @@ class PeopletagGroupNav extends Widget // FIXME: we should probably pass this in $action = $this->action->trimmed('action'); - $nickname = $this->action->trimmed('tagger'); + + if (common_config('singleuser', 'enabled')) { + $nickname = User::singleUserNickname(); + } else { + $nickname = $this->action->arg('tagger'); + } + $tag = $this->action->trimmed('tag'); if ($nickname) { - $user = User::staticGet('nickname', $nickname); + $user = User::getKV('nickname', $nickname); $user_profile = $user->getProfile(); if ($tag) {