forked from GNUsocial/gnu-social
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:
@@ -61,12 +61,7 @@ class AllmapAction 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) {
|
||||
// TRANS: Page title.
|
||||
|
Reference in New Issue
Block a user