X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpreprocessDump.php;h=d540e8f9020355b80289ef154d8a557f44739ef5;hb=0a1144fb2a2804c4b01e4cbae336475f92186e5b;hp=25ef1a776e30bc6ca84aa41092b4357e58890f49;hpb=e78776373e14c8dc208b0045bf83a44e671d6f00;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/preprocessDump.php b/maintenance/preprocessDump.php index 25ef1a776e..d540e8f902 100644 --- a/maintenance/preprocessDump.php +++ b/maintenance/preprocessDump.php @@ -41,6 +41,7 @@ class PreprocessDump extends DumpIterator { public function getStripList() { global $wgParser; + return $wgParser->getStripList(); } @@ -66,7 +67,7 @@ class PreprocessDump extends DumpIterator { } elseif ( isset( $wgParserConf['preprocessorClass'] ) ) { $name = $wgParserConf['preprocessorClass']; } else { - $name = 'Preprocessor_DOM'; + $name = Preprocessor_DOM::class; } $wgParser->firstCallInit(); @@ -87,10 +88,11 @@ class PreprocessDump extends DumpIterator { try { $this->mPreprocessor->preprocessToObj( strval( $content->getNativeData() ), 0 ); } catch ( Exception $e ) { - $this->error( "Caught exception " . $e->getMessage() . " in " . $rev->getTitle()->getPrefixedText() ); + $this->error( "Caught exception " . $e->getMessage() . " in " + . $rev->getTitle()->getPrefixedText() ); } } } -$maintClass = "PreprocessDump"; +$maintClass = PreprocessDump::class; require_once RUN_MAINTENANCE_IF_MAIN;