dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Installer: Use HTML/CSS instead of JavaScript to toggle the help message"
[lhc/web/wiklou.git]
/
maintenance
/
compareParsers.php
diff --git
a/maintenance/compareParsers.php
b/maintenance/compareParsers.php
index
fe6e604
..
2f0bcdf
100644
(file)
--- 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' ) ) {
$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 );
}
}
$this->options->setTidy( true );
}
@@
-145,7
+144,7
@@
class CompareParsers extends DumpIterator {
return;
}
return;
}
- $text = strval( $content->get
NativeData
() );
+ $text = strval( $content->get
Text
() );
$output1 = $parser1->parse( $text, $title, $this->options );
$output2 = $parser2->parse( $text, $title, $this->options );
$output1 = $parser1->parse( $text, $title, $this->options );
$output2 = $parser2->parse( $text, $title, $this->options );