diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-03 13:10:42 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-03 13:10:42 -0700 |
commit | 6e034567539d12c17759577f5392e86c3aca2fa6 (patch) | |
tree | 446480bb0fa544c6ed29764a6200286b5cf5f8b4 /lib | |
parent | dc4fafbbd16adecc94fb1e3ee889689cfb786c3a (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.php | 2 |
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(); |