From: Rob Church Date: Mon, 25 Dec 2006 04:54:42 +0000 (+0000) Subject: * Minor cosmetic changes to Special:Userrights X-Git-Tag: 1.31.0-rc.0~54776 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=e9afffee1d4ef7bd00c5622dc0e42b554781d1b1;p=lhc%2Fweb%2Fwiklou.git * Minor cosmetic changes to Special:Userrights * Earmark for a future rewrite --- 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 ); } /**