summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-03 13:10:42 -0700
committerBrion Vibber <brion@pobox.com>2010-11-03 13:10:42 -0700
commit6e034567539d12c17759577f5392e86c3aca2fa6 (patch)
tree446480bb0fa544c6ed29764a6200286b5cf5f8b4 /lib
parentdc4fafbbd16adecc94fb1e3ee889689cfb786c3a (diff)
Migrate some more code from manually constructing "fullname (nickname)" to using Profile->getFancyName(). Encapsulates common logic and allows for localization of the parens.
Diffstat (limited to 'lib')
-rw-r--r--lib/noticelist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index df1533980..bdf2530b3 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -306,7 +306,7 @@ class NoticeListItem extends Widget
$attrs = array('href' => $this->profile->profileurl,
'class' => 'url');
if (!empty($this->profile->fullname)) {
- $attrs['title'] = $this->profile->fullname . ' (' . $this->profile->nickname . ')';
+ $attrs['title'] = $this->profile->getFancyName();
}
$this->out->elementStart('a', $attrs);
$this->showAvatar();