From bcd99717f1622adbf6cb7eb71e48220e896aefbe Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 10 Apr 2008 16:32:32 +0000 Subject: [PATCH] (bug 13684) Links in Special:ListGroupRights should be in content language --- RELEASE-NOTES | 2 +- includes/SpecialListgrouprights.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 ); -- 2.20.1