Reverted r45517 " * (bug 16921) Add a maxlength for the reason field of the page...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 8 Jan 2009 18:51:11 +0000 (18:51 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 8 Jan 2009 18:51:11 +0000 (18:51 +0000)
This field is deliberately not a single-line text input field because it caused confusion when it was.

RELEASE-NOTES
includes/specials/SpecialMovepage.php

index 70d2e66..b281efc 100644 (file)
@@ -32,7 +32,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 
 === Bug fixes in 1.15 ===
 
-* (bug 16921) Add a maxlength for the reason field of the page move form
 
 === Languages updated in 1.15 ===
 
index 1c7fcbc..acc2762 100644 (file)
@@ -184,7 +184,7 @@ class MovePageForm {
                                        Xml::label( wfMsg( 'newtitle' ), 'wpNewTitle' ) .
                                "</td>
                                <td class='mw-input'>" .
-                                       Xml::input( 'wpNewTitle', 60, $newTitle->getPrefixedText(), array( 'type' => 'text', 'id' => 'wpNewTitle' ) ) .
+                                       Xml::input( 'wpNewTitle', 40, $newTitle->getPrefixedText(), array( 'type' => 'text', 'id' => 'wpNewTitle' ) ) .
                                        Xml::hidden( 'wpOldTitle', $this->oldTitle->getPrefixedText() ) .
                                "</td>
                        </tr>
@@ -193,8 +193,7 @@ class MovePageForm {
                                        Xml::label( wfMsg( 'movereason' ), 'wpReason' ) .
                                "</td>
                                <td class='mw-input'>" .
-                                       Xml::input( 'wpReason', 60, $this->reason, array( 'type' => 'text', 
-                                               'id' => 'wpReason', 'maxlength' => 200 ) ) .
+                                       Xml::tags( 'textarea', array( 'name' => 'wpReason', 'id' => 'wpReason', 'cols' => 60, 'rows' => 2 ), htmlspecialchars( $this->reason ) ) .
                                "</td>
                        </tr>"
                );