]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add fullname to title and h1 for groups
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 14:28:44 +0000 (10:28 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 14:28:44 +0000 (10:28 -0400)
actions/showgroup.php

index b6022840bf47997f89cda54970e56b9779d123b6..95d2914ba02b366d6370ff60d45a5e082c7187b7 100644 (file)
@@ -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);
         }
     }