X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Flistsnav.php;h=71e994094cbadde9870c5a9953d4db857f1f35de;hb=56e2b0007c00b85b80c85da072def1f9e832e05b;hp=412c18ffd9c95cc583a6282ffad83f873b8357b1;hpb=25198a8d4cee5b2182f1ecb99192a4108a01afa4;p=quix0rs-gnu-social.git diff --git a/lib/listsnav.php b/lib/listsnav.php index 412c18ffd9..71e994094c 100644 --- a/lib/listsnav.php +++ b/lib/listsnav.php @@ -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.')); } }