From 669184205702ea35c7c27494990d1dbb936253b7 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 4 Jan 2008 17:39:24 +0000 Subject: [PATCH] Reapply the ugly-URLs fix, plus a fix so it doesn't duplicate the title when using pretty URLs --- includes/SpecialUserrights.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index 639ed3abc7..9b4eeb03b0 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -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 .= '
' . wfMsgHtml( 'userrights-lookup-user' ) . ''; $form .= '

' . Xml::inputLabel( wfMsg( 'userrights-user-editname' ), 'user', 'username', 30, $this->mTarget ) . '

'; $form .= '

' . Xml::submitButton( wfMsg( 'editusergroup' ) ) . '

'; -- 2.20.1