* (bug 3192): properly check 'limit' parameter on Special:Contributions
* (bug 3187) watchlist text refer to unexistent "Stop watching" action
* Add block link and a link to the block log to Special:Contributions
-* Added $wgInvisibleGroups, to hide groups from Special:Listusers
* Add contributions link to block log items
Misc.:
*/
# $wgGroupPermissions['developer']['siteadmin'] = true;
-/**
- * List of groups which won't appear in Special:Listusers
- */
-$wgInvisibleGroups = array();
-
/**
* Set of available actions that can be restricted via Special:Protect
* You probably shouldn't change this.
wfMsgHtml( 'groups-editgroup-name' ) . '<select name="group">';
// get group names
- $groups = User::getVisibleGroups();
+ $groups = User::getAllGroups();
// we want a default empty group
$out.= '<option value=""></option>';
'ListUsersPage::formatResult' );
$groups = array();
while( $row = $dbr->fetchObject( $result ) ) {
- if ( User::isVisibleGroup( $row->ug_group ) ) {
- $groups[] = User::getGroupName( $row->ug_group );
- }
+ $groups[] = User::getGroupName( $row->ug_group );
}
$dbr->freeResult( $result );
array_keys( $wgGroupPermissions ),
array( '*', 'user', 'autoconfirmed' ) );
}
-
- /**
- * Return the set of groups which are not marked "invisible"
- * @return array
- * @static
- */
- function getVisibleGroups() {
- global $wgGroupPermissions, $wgInvisibleGroups;
- return array_diff( User::getAllGroups(), $wgInvisibleGroups );
- }
-
- /**
- * Determine if a given group name is a valid, visible group
- * @param string name
- * @return bool
- */
- function isVisibleGroup( $group ) {
- global $wgGroupPermissions, $wgInvisibleGroups;
- return isset( $wgGroupPermissions[$group] ) && !in_array( $group, $wgInvisibleGroups );
- }
}
?>