X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FpreprocessDump.php;h=a62e0196a5932f1a5085a6c20e8d943f0af20a0e;hp=75904d0c68f5bc41879b8ec309c7f4e02f25e0b1;hb=e90012d5581801045910f31ddefa9aee52e39d39;hpb=06825cbeaeed8fdee45260bf268d2e4744fbb2e1 diff --git a/maintenance/preprocessDump.php b/maintenance/preprocessDump.php index 75904d0c68..a62e0196a5 100644 --- a/maintenance/preprocessDump.php +++ b/maintenance/preprocessDump.php @@ -58,7 +58,7 @@ class PreprocessDump extends DumpIterator { } public function checkOptions() { - global $wgParser, $wgParserConf, $wgPreprocessorCacheThreshold; + global $wgParserConf, $wgPreprocessorCacheThreshold; if ( !$this->hasOption( 'cache' ) ) { $wgPreprocessorCacheThreshold = false; @@ -72,7 +72,7 @@ class PreprocessDump extends DumpIterator { $name = Preprocessor_DOM::class; } - $wgParser->firstCallInit(); + MediaWikiServices::getInstance()->getParser()->firstCallInit(); $this->mPreprocessor = new $name( $this ); }