From: Evan Prodromou Date: Mon, 30 Mar 2009 14:28:44 +0000 (-0400) Subject: add fullname to title and h1 for groups X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=650a86d79aacb0657a562183e5b5e37ace6127f3;p=quix0rs-gnu-social.git add fullname to title and h1 for groups --- diff --git a/actions/showgroup.php b/actions/showgroup.php index b6022840bf..95d2914ba0 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -73,11 +73,17 @@ class ShowgroupAction extends Action function title() { + if (!empty($this->group->fullname)) { + $base = $this->group->fullname . ' (' . $this->group->nickname . ')'; + } else { + $base = $this->group->nickname; + } + if ($this->page == 1) { - return sprintf(_("%s group"), $this->group->nickname); + return sprintf(_("%s group"), $base); } else { return sprintf(_("%s group, page %d"), - $this->group->nickname, + $base, $this->page); } }