Also, include includes when committing changes (haw haw)
This commit is contained in:
parent
3b0a843ad7
commit
b960ecccda
2 changed files with 12 additions and 2 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue