From: Tim Starling Date: Mon, 25 Dec 2006 10:49:57 +0000 (+0000) Subject: Fix breakage of child class in Special:Makesysop, plus a couple of cosmetic changes. X-Git-Tag: 1.31.0-rc.0~54775 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=e1deeb9b11d7cad9e8de43ca4c6fa6e86dc11906;p=lhc%2Fweb%2Fwiklou.git Fix breakage of child class in Special:Makesysop, plus a couple of cosmetic changes. --- diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index 2354fcc997..99abd7a7fe 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -5,7 +5,7 @@ * * @package MediaWiki * @subpackage Special pages - * @todo This code is fucking disgusting and needs a total rewrite + * @todo This code is disgusting and needs a total rewrite */ /** */ @@ -122,15 +122,14 @@ class UserrightsForm extends HTMLForm { */ function switchForm() { global $wgOut, $wgRequest; - $self = SpecialPage::getTitleFor( 'Userrights' ); $username = $wgRequest->getText( 'user-editname' ); - $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $self->getLocalUrl(), 'name' => 'uluser' ) ); + $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->action, 'name' => 'uluser' ) ); $form .= '
' . wfMsgHtml( 'userrights-lookup-user' ) . ''; $form .= '

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

'; $form .= '

' . Xml::submitButton( wfMsg( 'editusergroup' ), array( 'name' => 'ssearchuser' ) ) . '

'; $form .= '
'; $form .= ''; - $wgOut->addHtml( $form ); + $wgOut->addHTML( $form ); } /**