Use inContentLanguage for dropdown messages in HTMLFormField
authorMarius Hoch <hoo@online.de>
Fri, 28 Feb 2014 02:12:10 +0000 (03:12 +0100)
committerMarius Hoch <hoo@online.de>
Fri, 28 Feb 2014 02:13:03 +0000 (03:13 +0100)
to restore b/c for now.

Bug: 61942
Change-Id: I2741ef940d83eeb564e89e20378fb4004cfe5b83

includes/htmlform/HTMLFormField.php

index 27d9594..3c4ecd0 100644 (file)
@@ -558,7 +558,7 @@ abstract class HTMLFormField {
                                $this->mOptions = self::forceToStringRecursive( $this->mParams['options'] );
                        } elseif ( array_key_exists( 'options-message', $this->mParams ) ) {
                                /** @todo This is copied from Xml::listDropDown(), deprecate/avoid duplication? */
-                               $message = $this->msg( $this->mParams['options-message'] )->plain();
+                               $message = $this->msg( $this->mParams['options-message'] )->inContentLanguage()->plain();
 
                                $optgroup = false;
                                $this->mOptions = array();