From: Antoine Musso Date: Fri, 12 Nov 2004 21:23:09 +0000 (+0000) Subject: bug 770 implemented. bug 857 fixed. X-Git-Tag: 1.5.0alpha1~1367 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=812b452e9783df5d0da6d258a142c5568b56172a;p=lhc%2Fweb%2Fwiklou.git bug 770 implemented. bug 857 fixed. Deprecate Special:Listadmins and redirect to Special:Userlevels. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 21bfb4ccd8..b01f1218d9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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! diff --git a/includes/SpecialListadmins.php b/includes/SpecialListadmins.php index fba15ed7b7..63e9e5fc66 100644 --- a/includes/SpecialListadmins.php +++ b/includes/SpecialListadmins.php @@ -1,51 +1,23 @@ 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()); } + ?>