]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
General cleanup & part of ticket #2864: use User_group->getFancyName() instead of...
authorBrion Vibber <brion@pobox.com>
Wed, 3 Nov 2010 19:59:19 +0000 (12:59 -0700)
committerBrion Vibber <brion@pobox.com>
Wed, 3 Nov 2010 19:59:19 +0000 (12:59 -0700)
actions/showgroup.php
lib/util.php
plugins/GroupFavorited/groupfavoritedaction.php

index c8728284420a73e571030b72305f2a8442ac4df6..f38cd420ac7b0a74d25b4332612f6e4167705197 100644 (file)
@@ -68,12 +68,7 @@ class ShowgroupAction extends GroupDesignAction
      */
     function title()
     {
-        if (!empty($this->group->fullname)) {
-            // @todo FIXME: Needs proper i18n. Maybe use a generic method for this?
-            $base = $this->group->fullname . ' (' . $this->group->nickname . ')';
-        } else {
-            $base = $this->group->nickname;
-        }
+        $base = $this->group->getFancyName();
 
         if ($this->page == 1) {
             // TRANS: Page title for first group page. %s is a group name.
index d50fa2081432246d91eab3f7c196b5a0c81ea443..8f2a9f17389d4460a188ca892deb5752e041df5e 100644 (file)
@@ -1010,7 +1010,7 @@ function common_group_link($sender_id, $nickname)
         $attrs = array('href' => $group->permalink(),
                        'class' => 'url');
         if (!empty($group->fullname)) {
-            $attrs['title'] = $group->fullname . ' (' . $group->nickname . ')';
+            $attrs['title'] = $group->getFancyName();
         }
         $xs = new XMLStringer();
         $xs->elementStart('span', 'vcard');
index dbd37abbcfb0d422c339e3e02e3e45348b2dfdf7..dcbf7d0bc582dfab8a70b635954c4336d0d52750 100644 (file)
@@ -41,12 +41,7 @@ class GroupFavoritedAction extends ShowgroupAction
      */
     function title()
     {
-        if (!empty($this->group->fullname)) {
-            // @todo Create a core method to create this properly. i18n issue.
-            $base = $this->group->fullname . ' (' . $this->group->nickname . ')';
-        } else {
-            $base = $this->group->nickname;
-        }
+        $base = $this->group->getFancyName();
 
         if ($this->page == 1) {
             // TRANS: %s is a group name.