From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- includes/htmlform/HTMLAutoCompleteSelectField.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'includes/htmlform/HTMLAutoCompleteSelectField.php') diff --git a/includes/htmlform/HTMLAutoCompleteSelectField.php b/includes/htmlform/HTMLAutoCompleteSelectField.php index 49053628..55cd5d0c 100644 --- a/includes/htmlform/HTMLAutoCompleteSelectField.php +++ b/includes/htmlform/HTMLAutoCompleteSelectField.php @@ -98,11 +98,12 @@ class HTMLAutoCompleteSelectField extends HTMLTextField { return true; } - function getAttributes( array $list ) { + // FIXME Ewww, this shouldn't be adding any attributes not requested in $list :( + public function getAttributes( array $list, array $mappings = null ) { $attribs = array( 'type' => 'text', 'data-autocomplete' => FormatJson::encode( array_keys( $this->autocomplete ) ), - ) + parent::getAttributes( $list ); + ) + parent::getAttributes( $list, $mappings ); if ( $this->getOptions() ) { $attribs['data-hide-if'] = FormatJson::encode( @@ -162,4 +163,13 @@ class HTMLAutoCompleteSelectField extends HTMLTextField { return $ret; } + /** + * Get the OOUI version of this input. + * @param string $value + * @return false + */ + function getInputOOUI( $value ) { + // To be implemented, for now override the function from HTMLTextField + return false; + } } -- cgit v1.2.2