From: Alexandre Emsenhuber Date: Thu, 10 Apr 2008 16:32:32 +0000 (+0000) Subject: (bug 13684) Links in Special:ListGroupRights should be in content language X-Git-Tag: 1.31.0-rc.0~48460 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=bcd99717f1622adbf6cb7eb71e48220e896aefbe;p=lhc%2Fweb%2Fwiklou.git (bug 13684) Links in Special:ListGroupRights should be in content language --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8d9bf070c6..c71107a29d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/SpecialListgrouprights.php b/includes/SpecialListgrouprights.php index bf3ae92f0a..b540bdced2 100644 --- a/includes/SpecialListgrouprights.php +++ b/includes/SpecialListgrouprights.php @@ -50,7 +50,7 @@ class SpecialListGroupRights extends SpecialPage { $grouplink . ' ' . - SpecialListGroupRights::formatPermissions( $permissions ) . + self::formatPermissions( $permissions ) . ' ' ); @@ -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 );