The return of the validation feature (caveat: new table scheme!)
[lhc/web/wiklou.git] / includes / SpecialListadmins.php
index 41588d9..63e9e5f 100644 (file)
@@ -1,37 +1,23 @@
 <?php
-#
-# This class is used to get a list of users flagged with "sysop"
-# right.
-
-require_once("QueryPage.php");
-
-class ListAdminsPage extends PageQueryPage {
-
-       function getName() {
-               return 'Listadmins';
-       }
-
-       function sortDescending() {
-               return false;
-       }
-
-       function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
-               $user = $dbr->tableName( 'user' );
-               $userspace = Namespace::getUser();
-               return 'SELECT user_rights as type,'.$userspace.' as namespace,'.
-                      'user_name as title, user_name as value '.
-                      "FROM $user ".
-                          'WHERE user_rights LIKE "%sysop%"';
-       }
-}
-
+/**
+ * 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
+ */
+
+/**
+ * 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());
 }
 
+
 ?>