From: Bartosz DziewoƄski Date: Tue, 11 Aug 2015 19:13:56 +0000 (+0200) Subject: TitleInputWidget, UserInputWidget: Allow overriding 'infusable' X-Git-Tag: 1.31.0-rc.0~9920^2~2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=21d07c4e9c044016d263eca1a18798e008c37bf3;p=lhc%2Fweb%2Fwiklou.git TitleInputWidget, UserInputWidget: Allow overriding 'infusable' Needed for Ice69df851137e3454ae2c9f4c75494b18cf8a75a. Change-Id: I34048dbd90dffa0409132946fb2864452ab93827 --- diff --git a/includes/widget/TitleInputWidget.php b/includes/widget/TitleInputWidget.php index 8b8010e4df..e2b7fda21a 100644 --- a/includes/widget/TitleInputWidget.php +++ b/includes/widget/TitleInputWidget.php @@ -24,7 +24,7 @@ class TitleInputWidget extends \OOUI\TextInputWidget { */ public function __construct( array $config = array() ) { // Parent constructor - parent::__construct( array_merge( $config, array( 'infusable' => true ) ) ); + parent::__construct( array_merge( array( 'infusable' => true ), $config ) ); // Properties, which are ignored in PHP and just shipped back to JS if ( isset( $config['namespace'] ) ) { diff --git a/includes/widget/UserInputWidget.php b/includes/widget/UserInputWidget.php index e5663c31d7..1e2d3d618a 100644 --- a/includes/widget/UserInputWidget.php +++ b/includes/widget/UserInputWidget.php @@ -17,7 +17,7 @@ class UserInputWidget extends \OOUI\TextInputWidget { */ public function __construct( array $config = array() ) { // Parent constructor - parent::__construct( array_merge( $config, array( 'infusable' => true ) ) ); + parent::__construct( array_merge( array( 'infusable' => true ), $config ) ); // Initialization $this->addClasses( array( 'mw-widget-userInputWidget' ) );