From: Brion Vibber Date: Fri, 4 Jan 2008 17:39:24 +0000 (+0000) Subject: Reapply the ugly-URLs fix, plus a fix so it doesn't duplicate the title when using... X-Git-Tag: 1.31.0-rc.0~50128 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=669184205702ea35c7c27494990d1dbb936253b7;p=lhc%2Fweb%2Fwiklou.git Reapply the ugly-URLs fix, plus a fix so it doesn't duplicate the title when using pretty URLs --- 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' ) ) . '

';