* @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;
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) {
+ return sprintf(_('Lists with you'));
}
- return sprintf(_('People tags for %s'), $name);
+ // TRANS: Title for page that displays
+ // which people tags a user has been tagged with.
+ // TRANS: %s is a profile name.
+ return sprintf(_('Lists with %s'), $this->profile->getBestName());
}
-
function link()
{
return common_local_url('peopletagsforuser',