$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 );
}
return;
}
- $text = strval( $content->getNativeData() );
+ $text = strval( $content->getText() );
$output1 = $parser1->parse( $text, $title, $this->options );
$output2 = $parser2->parse( $text, $title, $this->options );