Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -1018,7 +1018,7 @@ |
1019 | 1019 | } |
1020 | 1020 | $list = array(); |
1021 | 1021 | foreach ( $user->getGroups() as $group ) { |
1022 | | - $list[] = self::buildGroupLink( $group ); |
| 1022 | + $list[] = self::buildGroupLink( $group, $user->getName() ); |
1023 | 1023 | } |
1024 | 1024 | $groups = $wgLang->commaList( $list ); |
1025 | 1025 | if ( $groups ) { |
— | — | @@ -1267,12 +1267,13 @@ |
1268 | 1268 | * Format a link to a group description page |
1269 | 1269 | * |
1270 | 1270 | * @param string $group |
| 1271 | + * @param string $username |
1271 | 1272 | * @return string |
1272 | 1273 | */ |
1273 | | - protected static function buildGroupLink( $group ) { |
| 1274 | + protected static function buildGroupLink( $group, $username = '#' ) { |
1274 | 1275 | static $cache = array(); |
1275 | 1276 | if ( !isset( $cache[$group] ) ) { |
1276 | | - $cache[$group] = User::makeGroupLinkHtml( $group, User::getGroupMember( $group ) ); |
| 1277 | + $cache[$group] = User::makeGroupLinkHtml( $group, User::getGroupMember( $group, $username ) ); |
1277 | 1278 | } |
1278 | 1279 | return $cache[$group]; |
1279 | 1280 | } |