From: Andrew Garrett Date: Fri, 24 Apr 2009 09:02:21 +0000 (+0000) Subject: Fix selectorother automatic addition of "other" field -- not switched over for the... X-Git-Tag: 1.31.0-rc.0~42050 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=8b7f9c3d266cb5ff18c4a1554d451f7c2fa91060;p=lhc%2Fweb%2Fwiklou.git Fix selectorother automatic addition of "other" field -- not switched over for the switching of keys/values --- 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 );