* // Sysops can disable other sysops in an emergency, and disable bots
* $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
*/
-$wgAddGroups = $wgRemoveGroups = array();
-
+$wgAddGroups = array();
+$wgRemoveGroups = array();
/**
* A list of available rights, in addition to the ones defined by the core.
}
}
sort( $r );
- if( $add ) {
+ if( $add === true ){
+ $r[] = wfMsgHTML( 'listgrouprights-addgroup-all' );
+ } else if( is_array( $add ) && count( $add ) ) {
$r[] = wfMsgHTML( 'listgrouprights-addgroup', $wgLang->listToText( $add ) );
}
- if( $remove ) {
+ if( $remove === true ){
+ $r[] = wfMsgHTML( 'listgrouprights-removegroup-all' );
+ } else if( is_array( $remove ) && count( $remove ) ) {
$r[] = wfMsgHTML( 'listgrouprights-removegroup', $wgLang->listToText( $remove ) );
}
if( empty( $r ) ) {
'listusers-noresult' => 'No user found.',
# Special:Listgrouprights
-'listgrouprights' => 'User group rights',
-'listgrouprights-summary' => 'The following is a list of user groups defined on this wiki, with their associated access rights.
+'listgrouprights' => 'User group rights',
+'listgrouprights-summary' => 'The following is a list of user groups defined on this wiki, with their associated access rights.
There may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] about individual rights.',
-'listgrouprights-group' => 'Group',
-'listgrouprights-rights' => 'Rights',
-'listgrouprights-helppage' => 'Help:Group rights',
-'listgrouprights-members' => '(list of members)',
-'listgrouprights-right-display' => '$1 ($2)', # only translate this message to other languages if you have to change it
-'listgrouprights-addgroup' => 'Can add groups: $1',
-'listgrouprights-removegroup' => 'Can remove groups: $1',
+'listgrouprights-group' => 'Group',
+'listgrouprights-rights' => 'Rights',
+'listgrouprights-helppage' => 'Help:Group rights',
+'listgrouprights-members' => '(list of members)',
+'listgrouprights-right-display' => '$1 ($2)', # only translate this message to other languages if you have to change it
+'listgrouprights-addgroup' => 'Can add groups: $1',
+'listgrouprights-removegroup' => 'Can remove groups: $1',
+'listgrouprights-addgroup-all' => 'Can add all groups',
+'listgrouprights-removegroup-all' => 'Can remove all groups',
# E-mail user
'mailnologin' => 'No send address',
'listgrouprights-helppage',
'listgrouprights-members',
'listgrouprights-right-display',
+ 'listgrouprights-addgroup',
+ 'listgrouprights-removegroup',
+ 'listgrouprights-addgroup-all',
+ 'listgrouprights-removegroup-all',
),
'emailuser' => array(
'mailnologin',