X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialBlockList.php;h=458343028e07ac0bb7dd02bb9a472ba4c61371a2;hb=21e83e5d562b7a0efaa1afe46574c8d8cd0f51f5;hp=456f4ecb5bba89b7d4bca9cb64daf71e31cee42e;hpb=6b0d5a7b4ecd33833eb9d6e5582395b5b39e7037;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialBlockList.php b/includes/specials/SpecialBlockList.php index 456f4ecb5b..458343028e 100644 --- a/includes/specials/SpecialBlockList.php +++ b/includes/specials/SpecialBlockList.php @@ -47,6 +47,7 @@ class SpecialBlockList extends SpecialPage { $lang = $this->getLanguage(); $out->setPageTitle( $this->msg( 'ipblocklist' ) ); $out->addModuleStyles( 'mediawiki.special' ); + $out->addModules( 'mediawiki.userSuggest' ); $request = $this->getRequest(); $par = $request->getVal( 'ip', $par ); @@ -72,6 +73,7 @@ class SpecialBlockList extends SpecialPage { 'tabindex' => '1', 'size' => '45', 'default' => $this->target, + 'cssclass' => 'mw-autocomplete-user', // used by mediawiki.userSuggest ), 'Options' => array( 'type' => 'multiselect', @@ -103,6 +105,7 @@ class SpecialBlockList extends SpecialPage { $form->setMethod( 'get' ); $form->setWrapperLegendMsg( 'ipblocklist-legend' ); $form->setSubmitTextMsg( 'ipblocklist-submit' ); + $form->setSubmitProgressive(); $form->prepareForm(); $form->displayForm( '' ); @@ -167,7 +170,7 @@ class SpecialBlockList extends SpecialPage { # Check for other blocks, i.e. global/tor blocks $otherBlockLink = array(); - wfRunHooks( 'OtherBlockLogLink', array( &$otherBlockLink, $this->target ) ); + Hooks::run( 'OtherBlockLogLink', array( &$otherBlockLink, $this->target ) ); $out = $this->getOutput(); @@ -259,7 +262,6 @@ class BlockListPager extends TablePager { 'blocklist-nousertalk', 'unblocklink', 'change-blocklink', - 'infiniteblock', ); $msg = array_combine( $msg, array_map( array( $this, 'msg' ), $msg ) ); } @@ -425,7 +427,6 @@ class BlockListPager extends TablePager { * @param ResultWrapper $result */ function preprocessResults( $result ) { - wfProfileIn( __METHOD__ ); # Do a link batch query $lb = new LinkBatch; $lb->setCaller( __METHOD__ ); @@ -450,6 +451,5 @@ class BlockListPager extends TablePager { } $lb->execute(); - wfProfileOut( __METHOD__ ); } }