From a3630dcbdd02c95900f17ec8acc9c2ca051ce50d Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Sat, 9 Jul 2011 19:33:58 +0000 Subject: [PATCH] Allow the 'other' parameter for HTMLForm selectorother: it is used in SpecialBlock.php::getFormFields() (and maybe in more files) --- includes/HTMLForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index c73d536185..ffa1f4b9ce 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -1375,7 +1375,8 @@ class HTMLSelectOrOtherField extends HTMLTextField { function __construct( $params ) { if ( !in_array( 'other', $params['options'], true ) ) { - $params['options'][wfMsg( 'htmlform-selectorother-other' )] = 'other'; + $msg = $params['other'] ? $params['other'] : wfMsg( 'htmlform-selectorother-other' ); + $params['options'][$msg] = 'other'; } parent::__construct( $params ); -- 2.20.1