Merge "TitleInputWidget, UserInputWidget: Allow overriding 'infusable'"

This commit is contained in:
jenkins-bot 2015-08-21 15:43:56 +00:00 committed by Gerrit Code Review
commit a2f75a52ef
2 changed files with 2 additions and 2 deletions

View file

@ -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'] ) ) {

View file

@ -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' ) );