The return of the validation feature (caveat: new table scheme!)
[lhc/web/wiklou.git] / includes / SpecialListadmins.php
index 39ad800..63e9e5f 100644 (file)
@@ -1,34 +1,23 @@
 <?php
-
-require_once("QueryPage.php");
-
-class ListAdminsPage extends PageQueryPage {
-
-       function getName() {
-               return 'Listadmins';
-       }
-
-       function sortDescending() {
-               return false;
-       }
-
-       function getSQL() {
-               global $wgIsPg;
-               $usertable = $wgIsPg?'"user"':'user';
-               $userspace = Namespace::getUser();
-               return 'SELECT user_rights as type,'.$userspace.' as namespace,'.
-                      'user_name as title, user_name as value '.
-                      "FROM $usertable ".
-                          'WHERE user_rights = "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());
 }
 
+
 ?>