Restore text for "Other" reason on Special:Block reason list
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 9 Apr 2014 19:19:34 +0000 (21:19 +0200)
committerIAlex <codereview@emsenhuber.ch>
Wed, 9 Apr 2014 19:40:39 +0000 (19:40 +0000)
There was only a empty item for that at the end of the drop down:
<option value="other" selected=""></option>

Follow-Up: If4175332405d26c7ff2e8fbe100bcad61762ce6f
Change-Id: If808c51c62b5c25a58ec6188784da5a676f60993

includes/htmlform/HTMLSelectAndOtherField.php

index 4f501f7..bb42d53 100644 (file)
@@ -16,7 +16,7 @@ class HTMLSelectAndOtherField extends HTMLSelectField {
                } elseif ( array_key_exists( 'other-message', $params ) ) {
                        $params['other'] = wfMessage( $params['other-message'] )->plain();
                } else {
-                       $params['other'] = null;
+                       $params['other'] = wfMessage( 'htmlform-selectorother-other' )->plain();
                }
 
                parent::__construct( $params );