Migrate some more code from manually constructing "fullname (nickname)" to using Profile->getFancyName(). Encapsulates common logic and allows for localization of the parens.

This commit is contained in:
Brion Vibber
2010-11-03 13:10:42 -07:00
parent dc4fafbbd1
commit 6e03456753
5 changed files with 5 additions and 23 deletions

View File

@@ -58,12 +58,7 @@ class UsermapAction extends MapAction
function title()
{
if (!empty($this->profile->fullname)) {
// @todo FIXME: Bad i18n. Should be '%1$s (%2$s)'
$base = $this->profile->fullname . ' (' . $this->user->nickname . ')';
} else {
$base = $this->user->nickname;
}
$base = $this->profile->getFancyName();
if ($this->page == 1) {
// @todo CHECKME: inconsisten with paged variant below. " map" missing.