bug 770 implemented. bug 857 fixed.
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 12 Nov 2004 21:23:09 +0000 (21:23 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 12 Nov 2004 21:23:09 +0000 (21:23 +0000)
Deprecate Special:Listadmins and redirect to Special:Userlevels.

RELEASE-NOTES
includes/SpecialListadmins.php

index 21bfb4c..b01f121 100644 (file)
@@ -27,6 +27,8 @@ Major changes from 1.3.x:
 * PhpTal skins shown bogus 'What links here' etc on special pages (bug #511)
 * Experimental code to manage user and group rights (Special:Userlevels)
 * UI language switching
+* Adding filter and username exact search match for Special:Listusers (bug #770)
+* Special:Listadmins outdated, use Special:Listusers instead (bug #857)
 * Traditional/Simplified Chinese conversion
 * ... and more!
 
index fba15ed..63e9e5f 100644 (file)
@@ -1,51 +1,23 @@
 <?php
 /**
- *
+ * This old a redirect to Special:Listusers that now implement a filter
+ * by user groups. The listadmins special page is now deprecated but kept
+ * for backward compatibility.
+ * 
  * @package MediaWiki
  * @subpackage SpecialPage
+ * @deprecated
  */
 
 /**
- *
- */
-require_once("QueryPage.php");
-
-/**
- * This class is used to get a list of users flagged with "sysop" right.
- *
- * @package MediaWiki
- * @subpackage SpecialPage
- */
-class ListAdminsPage extends PageQueryPage {
-
-       function getName() {
-               return 'Listadmins';
-       }
-
-       function sortDescending() {
-               return false;
-       }
-
-       function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
-               $user = $dbr->tableName( 'user' );
-               $user_rights = $dbr->tableName( 'user_rights' );
-               $userspace = Namespace::getUser();
-               return "SELECT ur_rights as type,{$userspace} as namespace,".
-                      "user_name as title, user_name as value ".
-                      "FROM {$user} ,{$user_rights} WHERE user_id=ur_user AND ur_rights LIKE '%sysop%'";
-       }
-}
-
-/**
- * constructor
+ * Just redirect to Special:Listusers.
+ * Kept for backward compatibility.
  */
 function wfSpecialListadmins() {
-       list( $limit, $offset ) = wfCheckLimits();
-
-       $sla = new ListAdminsPage();
-
-       return $sla->doQuery( $offset, $limit );
+       global $wgOut;
+       $t = Title::makeTitle( NS_SPECIAL, "Listusers" );
+       $wgOut->redirect ($t->getFullURL());
 }
 
+
 ?>