]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/listsnav.php
Avoid having to check for notices without rendered copies in upgrade.php
[quix0rs-gnu-social.git] / lib / listsnav.php
index 412c18ffd9c95cc583a6282ffad83f873b8357b1..71e994094cbadde9870c5a9953d4db857f1f35de 100644 (file)
@@ -49,24 +49,22 @@ class ListsNav extends MoreMenu
         parent::__construct($out);
         $this->profile = $profile;
 
-        $user = common_current_user();
-
-        $this->lists = $profile->getLists($user);
+        $this->lists = $profile->getLists(Profile::current());
     }
 
     function tag()
     {
         return 'lists';
     }
-    
+
     function getItems()
     {
         $items = array();
-        
+
         while ($this->lists->fetch()) {
                 $mode = $this->lists->private ? 'private' : 'public';
                 $items[] = array('showprofiletag',
-                                 array('tagger' => $this->profile->nickname,
+                                 array('nickname' => $this->profile->getNickname(),
                                        'tag'    => $this->lists->tag),
                                  $this->lists->tag,
                                  '');
@@ -84,7 +82,9 @@ class ListsNav extends MoreMenu
     {
         return array('peopletagsbyuser',
                      array('nickname' => $this->profile->nickname),
+                     // TRANS: Link description for seeing all lists.
                      _('See all'),
-                     _('See all lists you have created'));
+                     // TRANS: Link title for seeing all lists.
+                     _('See all lists you have created.'));
     }
 }