Fix selectorother automatic addition of "other" field -- not switched over for the...
authorAndrew Garrett <werdna@users.mediawiki.org>
Fri, 24 Apr 2009 09:02:21 +0000 (09:02 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Fri, 24 Apr 2009 09:02:21 +0000 (09:02 +0000)
includes/HTMLForm.php

index b41dc4b..0db6980 100644 (file)
@@ -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 );