X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FGroupFavorited%2Fgroupfavoritedaction.php;h=dcbf7d0bc582dfab8a70b635954c4336d0d52750;hb=89aebb4ef050700623dcf00829097c3875c1929f;hp=6803bea8d63b1255ee72a74221b54b57e8250735;hpb=d8d557cadfcbac687c07a9db7c22cdfc73965c71;p=quix0rs-gnu-social.git diff --git a/plugins/GroupFavorited/groupfavoritedaction.php b/plugins/GroupFavorited/groupfavoritedaction.php index 6803bea8d6..dcbf7d0bc5 100644 --- a/plugins/GroupFavorited/groupfavoritedaction.php +++ b/plugins/GroupFavorited/groupfavoritedaction.php @@ -32,27 +32,22 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } - class GroupFavoritedAction extends ShowgroupAction { - /** * Title of the page * * @return string page title, with page number */ - function title() { - if (!empty($this->group->fullname)) { - $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. return sprintf(_m('Popular posts in %s group'), $base); } else { + // TRANS: %1$s is a group name, %2$s is a group number. return sprintf(_m('Popular posts in %1$s group, page %2$d'), $base, $this->page); @@ -66,7 +61,6 @@ class GroupFavoritedAction extends ShowgroupAction * * @return void */ - function showContent() { $groupId = intval($this->group->id);