X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpeopletagsforusersection.php;h=37f46b850d128c5b83d4430b5a775c86c154c27b;hb=0590f2975e6c5b26bbe6121da5c49890e035721e;hp=f074248728dd27fe96b43daabca08d528da83e48;hpb=14a82dae61286a07413c944c37fdc030bf22b940;p=quix0rs-gnu-social.git diff --git a/lib/peopletagsforusersection.php b/lib/peopletagsforusersection.php index f074248728..37f46b850d 100644 --- a/lib/peopletagsforusersection.php +++ b/lib/peopletagsforusersection.php @@ -2,7 +2,7 @@ /** * StatusNet, the distributed open-source microblogging tool * - * People tags a user has been tagged with + * Lists a user is in * * PHP version 5 * @@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { } /** - * People tags a user has been tagged with + * List a user has is in * * @category Widget * @package StatusNet @@ -39,7 +39,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ - class PeopletagsForUserSection extends PeopletagSection { var $profile=null; @@ -63,14 +62,17 @@ class PeopletagsForUserSection extends PeopletagSection function title() { - $name = $this->profile->getBestName(); - if ($this->profile->id == common_current_user()->id) { - $name = 'you'; + $user = common_current_user(); + + if (!empty($user) && $this->profile->id == $user->id) { + // TRANS: Title for page that displays which lists current user is part of. + return sprintf(_('Lists with you')); } - return sprintf(_('People tags for %s'), $name); + // TRANS: Title for page that displays which lists a user is part of. + // TRANS: %s is a profile name. + return sprintf(_('Lists with %s'), $this->profile->getBestName()); } - function link() { return common_local_url('peopletagsforuser',