(bug 13684) Links in Special:ListGroupRights should be in content language
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 10 Apr 2008 16:32:32 +0000 (16:32 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 10 Apr 2008 16:32:32 +0000 (16:32 +0000)
RELEASE-NOTES
includes/SpecialListgrouprights.php

index 8d9bf07..c71107a 100644 (file)
@@ -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 ===
 
index bf3ae92..b540bdc 100644 (file)
@@ -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 );