Index: trunk/extensions/CentralAuth/SpecialGlobalUsers.php |
— | — | @@ -89,7 +89,13 @@ |
90 | 90 | ); |
91 | 91 | } |
92 | 92 | |
| 93 | + /** |
| 94 | + * Formats a row |
| 95 | + * @param object $row The row to be formatted for output |
| 96 | + * @return string HTML li element with username and info about this user |
| 97 | + */ |
93 | 98 | function formatRow( $row ) { |
| 99 | + global $wgLang; |
94 | 100 | $user = htmlspecialchars( $row->gu_name ); |
95 | 101 | $info = array(); |
96 | 102 | if( $row->gu_locked ) |
— | — | @@ -105,8 +111,8 @@ |
106 | 112 | if( $groups ) { |
107 | 113 | $info[] = $groups; |
108 | 114 | } |
109 | | - $info = implode( ', ', $info ); |
110 | | - return '<li>' . wfSpecialList( $user, $info ) . '</li>'; |
| 115 | + $info = $wgLang->commaList( $info ); |
| 116 | + return Html::rawElement( 'li', array(), wfSpecialList( $user, $info ) ); |
111 | 117 | } |
112 | 118 | |
113 | 119 | function getBody() { |