From 8b7f9c3d266cb5ff18c4a1554d451f7c2fa91060 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Fri, 24 Apr 2009 09:02:21 +0000 Subject: [PATCH] Fix selectorother automatic addition of "other" field -- not switched over for the switching of keys/values --- includes/HTMLForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index b41dc4bd75..0db6980a09 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -581,7 +581,7 @@ class HTMLSelectOrOtherField extends HTMLTextField { function __construct( $params ) { if (! array_key_exists('other', $params['options']) ) { - $params['options']['other'] = wfMsg( 'htmlform-selectorother-other' ); + $params['options'][wfMsg( 'htmlform-selectorother-other' )] = 'other'; } parent::__construct( $params ); -- 2.20.1