From: Jayprakash12345 <0freerunning@gmail.com> Date: Sat, 21 Apr 2018 23:20:10 +0000 (+0530) Subject: Remove cssclass in the favor of 'type' => 'user' X-Git-Tag: 1.34.0-rc.0~5647 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=ba08a9146898a1904101209551fa7ef67a7b64e8;p=lhc%2Fweb%2Fwiklou.git Remove cssclass in the favor of 'type' => 'user' Bug: T192694 Change-Id: If385c16c9099475d50dcb775484f710450360ed2 --- diff --git a/includes/specials/SpecialUnblock.php b/includes/specials/SpecialUnblock.php index b2d5a1633b..fe9202e4a9 100644 --- a/includes/specials/SpecialUnblock.php +++ b/includes/specials/SpecialUnblock.php @@ -57,7 +57,6 @@ class SpecialUnblock extends SpecialPage { $out = $this->getOutput(); $out->setPageTitle( $this->msg( 'unblockip' ) ); - $out->addModules( [ 'mediawiki.userSuggest' ] ); $form = HTMLForm::factory( 'ooui', $this->getFields(), $this->getContext() ); $form->setWrapperLegendMsg( 'unblockip' ); @@ -87,12 +86,11 @@ class SpecialUnblock extends SpecialPage { protected function getFields() { $fields = [ 'Target' => [ - 'type' => 'text', + 'type' => 'user', 'label-message' => 'ipaddressorusername', 'autofocus' => true, 'size' => '45', 'required' => true, - 'cssclass' => 'mw-autocomplete-user', // used by mediawiki.userSuggest ], 'Name' => [ 'type' => 'info',