Feature karma: removing a useless feature that I recently committed.
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 31 Jan 2006 04:10:01 +0000 (04:10 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 31 Jan 2006 04:10:01 +0000 (04:10 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/SpecialListusers.php
includes/User.php

index ce3e2fa..695b744 100644 (file)
@@ -341,7 +341,6 @@ Special Pages:
 * (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.:
index f6ff4f2..87dba3b 100644 (file)
@@ -846,11 +846,6 @@ $wgGroupPermissions['bureaucrat']['userrights'] = true;
  */
 # $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.
index 1105ddf..b2a35dd 100644 (file)
@@ -89,7 +89,7 @@ class ListUsersPage extends QueryPage {
                                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>';
@@ -185,9 +185,7 @@ class ListUsersPage extends QueryPage {
                                '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 );
 
index 02f7ec3..c95e5e8 100644 (file)
@@ -1852,26 +1852,6 @@ class User {
                        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 );
-       }
 }
 
 ?>