Also, include includes when committing changes (haw haw)

This commit is contained in:
Andrew Garrett 2008-04-24 08:58:39 +00:00
parent 3b0a843ad7
commit b960ecccda
2 changed files with 12 additions and 2 deletions

View file

@ -95,8 +95,8 @@ class SpecialListGroupRights extends SpecialPage {
$r = array();
foreach( $permissions as $permission => $granted ) {
if ( $granted ) {
$permission = htmlspecialchars( $permission );
$r[] = wfMsgExt( 'listgrouprights-link', array( 'parseinline', 'content' ), $permission );
$description = User::getRightDescription($permission);
$r[] = wfMsgExt( 'listgrouprights-link', array( 'parseinline', 'content' ), $description, $permission );
}
}
sort( $r );

View file

@ -2825,4 +2825,14 @@ class User {
// edit count in user cache too
$this->invalidateCache();
}
static function getRightDescription( $right ) {
global $wgMessageCache;
$wgMessageCache->loadAllMessages();
$key = "right-$right";
$name = wfMsg( $key );
return $name == '' || wfEmptyMsg( $key, $name )
? $right
: $name;
}
}