* Introduced the edittools-upload message, which will be inserted under the
upload form instead of edittools if available
* (bug 26285) Extensions will be automatically generated on upload if the user
- specified a filename without extension.
+ specified a filename without extension.
+* (bug 26851) Special:UserRights now allows to prefill the reason field
=== Bug fixes in 1.18 ===
* (bug 23119) WikiError class and subclasses are now marked as deprecated
* @param $groups Array: Array of groups the user is in
*/
protected function showEditUserGroupsForm( $user, $groups ) {
- global $wgOut, $wgUser, $wgLang;
+ global $wgOut, $wgUser, $wgLang, $wgRequest;
$list = array();
foreach( $groups as $group ) {
Xml::label( wfMsg( 'userrights-reason' ), 'wpReason' ) .
"</td>
<td class='mw-input'>" .
- Xml::input( 'user-reason', 60, false, array( 'id' => 'wpReason', 'maxlength' => 255 ) ) .
+ Xml::input( 'user-reason', 60, $wgRequest->getVal( 'user-reason', false ),
+ array( 'id' => 'wpReason', 'maxlength' => 255 ) ) .
"</td>
</tr>
<tr>