add fullname to title and h1 for groups
This commit is contained in:
parent
d5ac986b80
commit
650a86d79a
|
@ -73,11 +73,17 @@ class ShowgroupAction extends Action
|
||||||
|
|
||||||
function title()
|
function title()
|
||||||
{
|
{
|
||||||
|
if (!empty($this->group->fullname)) {
|
||||||
|
$base = $this->group->fullname . ' (' . $this->group->nickname . ')';
|
||||||
|
} else {
|
||||||
|
$base = $this->group->nickname;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->page == 1) {
|
if ($this->page == 1) {
|
||||||
return sprintf(_("%s group"), $this->group->nickname);
|
return sprintf(_("%s group"), $base);
|
||||||
} else {
|
} else {
|
||||||
return sprintf(_("%s group, page %d"),
|
return sprintf(_("%s group, page %d"),
|
||||||
$this->group->nickname,
|
$base,
|
||||||
$this->page);
|
$this->page);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user