From 13c599a0fdb87830f013a5a37d2dfe38f6523031 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 6 Aug 2008 19:58:06 +0000 Subject: [PATCH] Tweaks to Special:ListGroupRights: * Allow wikitext in messages * Per Nikerabbit: use User::makeGroupLinkWiki() for groups --- includes/specials/SpecialListgrouprights.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialListgrouprights.php b/includes/specials/SpecialListgrouprights.php index af5b63496e..4762ae4943 100644 --- a/includes/specials/SpecialListgrouprights.php +++ b/includes/specials/SpecialListgrouprights.php @@ -100,8 +100,8 @@ class SpecialListGroupRights extends SpecialPage { $r = array(); foreach( $permissions as $permission => $granted ) { if ( $granted ) { - $description = wfMsgHTML( 'listgrouprights-right-display', - User::getRightDescription($permission), + $description = wfMsgExt( 'listgrouprights-right-display', array( 'parse' ), + User::getRightDescription( $permission ), $permission ); $r[] = $description; @@ -111,12 +111,12 @@ class SpecialListGroupRights extends SpecialPage { if( $add === true ){ $r[] = wfMsgExt( 'listgrouprights-addgroup-all', array( 'escape' ) ); } else if( is_array( $add ) && count( $add ) ) { - $r[] = wfMsgExt( 'listgrouprights-addgroup', array( 'parsemag', 'escape' ), $wgLang->listToText( $add ), count( $add ) ); + $r[] = wfMsgExt( 'listgrouprights-addgroup', array( 'parse' ), $wgLang->listToText( array_map( array( 'User', 'makeGroupLinkWiki' ), $add ) ), count( $add ) ); } if( $remove === true ){ $r[] = wfMsgExt( 'listgrouprights-removegroup-all', array( 'escape' ) ); } else if( is_array( $remove ) && count( $remove ) ) { - $r[] = wfMsgExt( 'listgrouprights-removegroup', array( 'parsemag', 'escape' ), $wgLang->listToText( $remove ), count( $remove ) ); + $r[] = wfMsgExt( 'listgrouprights-removegroup', array( 'parse' ), $wgLang->listToText( array_map( array( 'User', 'makeGroupLinkWiki' ), $remove ) ), count( $remove ) ); } if( empty( $r ) ) { return ''; -- 2.20.1