X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpeopletaggroupnav.php;h=70f7f5a425baf1926f154fd37e714b46e5382973;hb=0d487a1ea000b327cfaa5a2632e9a2a9fa61f23c;hp=a93499ce76b291c29ba8a266f0b1db932fd9c237;hpb=53af608ef882eb03cd924ed630f98d856c11370a;p=quix0rs-gnu-social.git diff --git a/lib/peopletaggroupnav.php b/lib/peopletaggroupnav.php index a93499ce76..70f7f5a425 100644 --- a/lib/peopletaggroupnav.php +++ b/lib/peopletaggroupnav.php @@ -79,7 +79,13 @@ 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) { @@ -103,10 +109,10 @@ class PeopletagGroupNav extends Widget // People tag timeline $this->out->menuItem(common_local_url('showprofiletag', array('tagger' => $user_profile->nickname, 'tag' => $tag->tag)), - // TRANS: Menu item in people tag navigation panel. + // TRANS: Menu item in list navigation panel. _m('MENU','List'), - // TRANS: Menu item title in people tag navigation panel. - // TRANS: %1$s is a tag, %2$s is a nickname. + // TRANS: Menu item title in list navigation panel. + // TRANS: %1$s is a list, %2$s is a nickname. sprintf(_('%1$s list by %2$s.'), $tag->tag, (($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)), $action == 'showprofiletag', 'nav_timeline_peopletag'); @@ -114,10 +120,10 @@ class PeopletagGroupNav extends Widget // Tagged $this->out->menuItem(common_local_url('peopletagged', array('tagger' => $user->nickname, 'tag' => $tag->tag)), - // TRANS: Menu item in people tag navigation panel. + // TRANS: Menu item in list navigation panel. _m('MENU','Listed'), - // TRANS: Menu item title in people tag navigation panel. - // TRANS: %1$s is a tag, %2$s is a nickname. + // TRANS: Menu item title in list navigation panel. + // TRANS: %1$s is a list, %2$s is a nickname. sprintf(_('%1$s list by %2$s.'), $tag->tag, (($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)), $action == 'peopletagged', 'nav_peopletag_tagged'); @@ -125,10 +131,10 @@ class PeopletagGroupNav extends Widget // Subscribers $this->out->menuItem(common_local_url('peopletagsubscribers', array('tagger' => $user->nickname, 'tag' => $tag->tag)), - // TRANS: Menu item in people tag navigation panel. + // TRANS: Menu item in list navigation panel. _m('MENU','Subscribers'), - // TRANS: Menu item title in people tag navigation panel. - // TRANS: %1$s is a tag, %2$s is a nickname. + // TRANS: Menu item title in list navigation panel. + // TRANS: %1$s is a list, %2$s is a nickname. sprintf(_('Subscribers to %1$s list by %2$s.'), $tag->tag, (($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)), $action == 'peopletagsubscribers', 'nav_peopletag_subscribers'); @@ -138,10 +144,10 @@ class PeopletagGroupNav extends Widget // Edit $this->out->menuItem(common_local_url('editpeopletag', array('tagger' => $user->nickname, 'tag' => $tag->tag)), - // TRANS: Menu item in people tag navigation panel. + // TRANS: Menu item in list navigation panel. _m('MENU','Edit'), - // TRANS: Menu item title in people tag navigation panel. - // TRANS: %s is a tag. + // TRANS: Menu item title in list navigation panel. + // TRANS: %s is a list. sprintf(_('Edit %s list by you.'), $tag->tag, (($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)), $action == 'editpeopletag', 'nav_peopletag_edit');