Reapply the ugly-URLs fix, plus a fix so it doesn't duplicate the title when using...
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 4 Jan 2008 17:39:24 +0000 (17:39 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 4 Jan 2008 17:39:24 +0000 (17:39 +0000)
includes/SpecialUserrights.php

index 639ed3a..9b4eeb0 100644 (file)
@@ -239,8 +239,9 @@ class UserrightsPage extends SpecialPage {
         * Output a form to allow searching for a user
         */
        function switchForm() {
-               global $wgOut;
-               $form  = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $this->getTitle()->escapeLocalURL(), 'name' => 'uluser' ) );
+               global $wgOut, $wgScript;
+               $form  = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'name' => 'uluser' ) );
+               $form .= Xml::hidden( 'title',  'Special:Userrights' ); 
                $form .= '<fieldset><legend>' . wfMsgHtml( 'userrights-lookup-user' ) . '</legend>';
                $form .= '<p>' . Xml::inputLabel( wfMsg( 'userrights-user-editname' ), 'user', 'username', 30, $this->mTarget ) . '</p>';
                $form .= '<p>' . Xml::submitButton( wfMsg( 'editusergroup' ) ) . '</p>';