From e9afffee1d4ef7bd00c5622dc0e42b554781d1b1 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 25 Dec 2006 04:54:42 +0000 Subject: [PATCH] * Minor cosmetic changes to Special:Userrights * Earmark for a future rewrite --- RELEASE-NOTES | 1 + includes/SpecialUserrights.php | 33 +++++++++++++++------------------ 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f727b8b427..a65e1b9de7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -407,6 +407,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN the password never being an obscure value * Remove old unused watchlist cache, which was a leftover from the old schema where watchlists were more expensive to generate +* Minor cosmetic changes to Special:Userrights == Languages updated == diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index 0afcb486b6..2354fcc997 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -1,11 +1,11 @@ addHTML( "
action\" method=\"post\">\n" ); - $wgOut->addHTML( $this->fieldset( 'lookup-user', - $this->textbox( 'user-editname' ) . - wfElement( 'input', array( - 'type' => 'submit', - 'name' => 'ssearchuser', - 'value' => wfMsg( 'editusergroup' ) ) ) - )); - $wgOut->addHTML( "
\n" ); + 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 .= '
' . 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 ); } /** -- 2.20.1