]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/peopletaggroupnav.php
No more needed (for this fix) but maybe later. So I always only comment them out.
[quix0rs-gnu-social.git] / lib / peopletaggroupnav.php
index c247bdb8d843bcdafecf970e6280858f0123f329..212a90586b096e4289c79f461c6ea72a7e6c3a5d 100644 (file)
@@ -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) {
@@ -138,7 +144,7 @@ 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 list navigation panel.
                                  // TRANS: %s is a list.