From e260c2f61df4c3dce4d5651f6bbc40c64c56bf58 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 31 Dec 2007 23:54:52 +0000 Subject: [PATCH] Add userrights-text message to display at all times on Special:Userrights, like makesysoptext, per request on bug 11645. --- RELEASE-NOTES | 1 + includes/SpecialUserrights.php | 2 ++ languages/messages/MessagesEn.php | 1 + 3 files changed, 4 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 501305a980..776e79a543 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -112,6 +112,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Add HTML ID's mw-read-only-warning and mw-anon-edit-warning to warnings when editing to allow CSS styling. * Parser now returns list of sections +* Add userrights-text message to display at all times on Special:Userrights. === Bug fixes in 1.12 === diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index 0394b7d85e..f19fe1d8bd 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -232,6 +232,8 @@ class UserrightsForm extends HTMLForm { */ function switchForm() { global $wgOut, $wgRequest; + $wgOut->addWikiText( wfMsg( 'userrights-text' ) ); + $username = $wgRequest->getText( 'user-editname' ); $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->action, 'name' => 'uluser' ) ); $form .= '
' . wfMsgHtml( 'userrights-lookup-user' ) . ''; diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 861f080db2..1cafdd9594 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1343,6 +1343,7 @@ Unselected groups will not be changed. You can deselect a group with CTRL + Left 'userrights-nodatabase' => 'Database $1 does not exist or is not local.', 'userrights-nologin' => 'You must [[Special:Userlogin|log in]] with an administrator account to assign user rights.', 'userrights-notallowed' => 'Your account does not have permission to assign user rights.', +'userrights-text' => '', # don't translate or duplicate this message to other languages # Groups 'group' => 'Group:', -- 2.20.1