(bug 13684) Links in Special:ListGroupRights should be in content language
This commit is contained in:
parent
a1963860d5
commit
bcd99717f1
2 changed files with 3 additions and 4 deletions
|
|
@ -163,7 +163,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
|
|||
* (bug 13458) Preview/edit toolbar spacing now works consistently
|
||||
* (bug 13433) Fix action=render on Image: pages
|
||||
* (bug 13678) Fix CSS validation for Monobook
|
||||
|
||||
* (bug 13684) Links in Special:ListGroupRights should be in content language
|
||||
|
||||
=== API changes in 1.13 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class SpecialListGroupRights extends SpecialPage {
|
|||
$grouplink .
|
||||
'</td>
|
||||
<td>' .
|
||||
SpecialListGroupRights::formatPermissions( $permissions ) .
|
||||
self::formatPermissions( $permissions ) .
|
||||
'</td>
|
||||
</tr>'
|
||||
);
|
||||
|
|
@ -67,12 +67,11 @@ class SpecialListGroupRights extends SpecialPage {
|
|||
* @return string List of all granted permissions, separated by comma separator
|
||||
*/
|
||||
private static function formatPermissions( $permissions ) {
|
||||
global $wgUser;
|
||||
$r = array();
|
||||
foreach( $permissions as $permission => $granted ) {
|
||||
if ( $granted ) {
|
||||
$permission = htmlspecialchars( $permission );
|
||||
$r[] = wfMsgExt( 'listgrouprights-link', array( 'parseinline' ), $permission );
|
||||
$r[] = wfMsgExt( 'listgrouprights-link', array( 'parseinline', 'content' ), $permission );
|
||||
}
|
||||
}
|
||||
sort( $r );
|
||||
|
|
|
|||
Loading…
Reference in a new issue