X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLUserTextField.php;h=5a7e0b9b854a136950b30613230d9fd9110aa8a0;hb=4930b32e378e888ae215bad3fd649ac71d4b6d9b;hp=8816d37fe8f833d8ced8f9aed1af528da265c257;hpb=3c18e32e58d53ab38d1dd52d00f248ddef435ebd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLUserTextField.php b/includes/htmlform/HTMLUserTextField.php index 8816d37fe8..5a7e0b9b85 100644 --- a/includes/htmlform/HTMLUserTextField.php +++ b/includes/htmlform/HTMLUserTextField.php @@ -15,10 +15,10 @@ use MediaWiki\Widget\UserInputWidget; */ class HTMLUserTextField extends HTMLTextField { public function __construct( $params ) { - $params += array( + $params += [ 'exists' => false, 'ipallowed' => false, - ); + ]; parent::__construct( $params ); } @@ -51,6 +51,6 @@ class HTMLUserTextField extends HTMLTextField { $this->mClass .= ' mw-autocomplete-user'; // return parent html - return parent::getInputHtml( $value ); + return parent::getInputHTML( $value ); } }