summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-30 10:28:44 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-03-30 10:28:44 -0400
commit650a86d79aacb0657a562183e5b5e37ace6127f3 (patch)
tree97445c4b51919c42f7f346d87bd87270dcabc351
parentd5ac986b800858348dec746d64c8b907043ba225 (diff)
add fullname to title and h1 for groups
-rw-r--r--actions/showgroup.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php
index b6022840b..95d2914ba 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);
}
}