From e1deeb9b11d7cad9e8de43ca4c6fa6e86dc11906 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 25 Dec 2006 10:49:57 +0000 Subject: [PATCH] Fix breakage of child class in Special:Makesysop, plus a couple of cosmetic changes. --- includes/SpecialUserrights.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ); } /** -- 2.20.1