summaryrefslogtreecommitdiff
path: root/actions/showgroup.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-03 12:59:19 -0700
committerBrion Vibber <brion@pobox.com>2010-11-03 12:59:19 -0700
commitdc4fafbbd16adecc94fb1e3ee889689cfb786c3a (patch)
treeda353aaf51c0ce2a7540da5c08b70ba80b2b589e /actions/showgroup.php
parentb0d79005308c30a6db2878377107643e77f0c03f (diff)
General cleanup & part of ticket #2864: use User_group->getFancyName() instead of replicating the logic in various places. Encapsulates and allows for localization of parens.
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r--actions/showgroup.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php
index c87282844..f38cd420a 100644
--- a/actions/showgroup.php
+++ b/actions/showgroup.php
@@ -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.