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 /actions/shownotice.php | |
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 'actions/shownotice.php')
-rw-r--r-- | actions/shownotice.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php index 5fc863486..7cc6c5424 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -167,11 +167,7 @@ class ShownoticeAction extends OwnerDesignAction function title() { - if (!empty($this->profile->fullname)) { - $base = $this->profile->fullname . ' (' . $this->profile->nickname . ')'; - } else { - $base = $this->profile->nickname; - } + $base = $this->profile->getFancyName(); return sprintf(_('%1$s\'s status on %2$s'), $base, |