X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FcompareParsers.php;h=2f0bcdf2a2ee225e7a6908b4a81174c7cc014b15;hp=fe6e604d96104744a8db3fb31a815de6a6943e15;hb=e90012d5581801045910f31ddefa9aee52e39d39;hpb=236488d398046838059f758b0915341648b64c7b diff --git a/maintenance/compareParsers.php b/maintenance/compareParsers.php index fe6e604d96..2f0bcdf2a2 100644 --- a/maintenance/compareParsers.php +++ b/maintenance/compareParsers.php @@ -95,9 +95,8 @@ class CompareParsers extends DumpIterator { $this->options = ParserOptions::newFromUser( $user ); if ( $this->hasOption( 'tidy' ) ) { - global $wgUseTidy; - if ( !$wgUseTidy ) { - $this->fatalError( 'Tidy was requested but $wgUseTidy is not set in LocalSettings.php' ); + if ( !MWTidy::isEnabled() ) { + $this->fatalError( 'Tidy was requested but $wgTidyConfig is not set in LocalSettings.php' ); } $this->options->setTidy( true ); } @@ -145,7 +144,7 @@ class CompareParsers extends DumpIterator { return; } - $text = strval( $content->getNativeData() ); + $text = strval( $content->getText() ); $output1 = $parser1->parse( $text, $title, $this->options ); $output2 = $parser2->parse( $text, $title, $this->options );