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.

This commit is contained in:
Brion Vibber
2010-11-03 12:59:19 -07:00
parent b0d7900530
commit dc4fafbbd1
3 changed files with 3 additions and 13 deletions

View 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');