Chad has uploaded a new change for review. https://gerrit.wikimedia.org/r/207020
Change subject: wfRunHooks() -> Hooks::run() ...................................................................... wfRunHooks() -> Hooks::run() Change-Id: I164ad2dbcf8008b551288cab4c90bcbd0df33024 --- M includes/Maintenance/AnalysisConfigBuilder.php M includes/Maintenance/MappingConfigBuilder.php M includes/Updater.php 3 files changed, 8 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch refs/changes/20/207020/1 diff --git a/includes/Maintenance/AnalysisConfigBuilder.php b/includes/Maintenance/AnalysisConfigBuilder.php index bf2060c..57418ca 100644 --- a/includes/Maintenance/AnalysisConfigBuilder.php +++ b/includes/Maintenance/AnalysisConfigBuilder.php @@ -3,6 +3,7 @@ namespace CirrusSearch\Maintenance; use \CirrusSearch\Searcher; +use \Hooks; use \Language; /** @@ -64,7 +65,7 @@ */ public function buildConfig() { $config = $this->customize( $this->defaults() ); - wfRunHooks( 'CirrusSearchAnalysisConfig', array( &$config ) ); + Hooks::run( 'CirrusSearchAnalysisConfig', array( &$config ) ); return $config; } diff --git a/includes/Maintenance/MappingConfigBuilder.php b/includes/Maintenance/MappingConfigBuilder.php index 681328e..9260e2f 100644 --- a/includes/Maintenance/MappingConfigBuilder.php +++ b/includes/Maintenance/MappingConfigBuilder.php @@ -1,6 +1,7 @@ <?php namespace CirrusSearch\Maintenance; +use \Hooks; /** * Builds elasticsearch mapping configuration arrays. @@ -219,7 +220,7 @@ ), ); - wfRunHooks( 'CirrusSearchMappingConfig', array( &$config, $this ) ); + Hooks::run( 'CirrusSearchMappingConfig', array( &$config, $this ) ); return $config; } diff --git a/includes/Updater.php b/includes/Updater.php index ad6c20a..97f04c8 100644 --- a/includes/Updater.php +++ b/includes/Updater.php @@ -5,6 +5,7 @@ use CirrusSearch\BuildDocument\PageDataBuilder; use CirrusSearch\BuildDocument\PageTextBuilder; use MediaWiki\Logger\LoggerFactory; +use \Hooks; use \MWTimestamp; use \ParserCache; use \Sanitizer; @@ -341,17 +342,17 @@ } // Then let hooks have a go - wfRunHooks( 'CirrusSearchBuildDocumentParse', array( $doc, $title, $content, $parserOutput ) ); + Hooks::run( 'CirrusSearchBuildDocumentParse', array( $doc, $title, $content, $parserOutput ) ); } if ( !$skipLinks ) { - wfRunHooks( 'CirrusSearchBuildDocumentLinks', array( $doc, $title ) ); + Hooks::run( 'CirrusSearchBuildDocumentLinks', array( $doc, $title ) ); } $documents[] = $doc; } - wfRunHooks( 'CirrusSearchBuildDocumentFinishBatch', array( $pages ) ); + Hooks::run( 'CirrusSearchBuildDocumentFinishBatch', array( $pages ) ); return $documents; } -- To view, visit https://gerrit.wikimedia.org/r/207020 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I164ad2dbcf8008b551288cab4c90bcbd0df33024 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CirrusSearch Gerrit-Branch: master Gerrit-Owner: Chad <ch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits