X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcompareParsers.php;h=3b09385a06582705eabfa36a26e7ba9d46882bdb;hb=389d0a09580f5ab92494a0ac27b806a224887b2c;hp=e67c439baf8a45f3c6fe87aab31082e9562248c1;hpb=19a38526f390cfdc6a6061cc055fc7f13167bf03;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/compareParsers.php b/maintenance/compareParsers.php index e67c439baf..3b09385a06 100644 --- a/maintenance/compareParsers.php +++ b/maintenance/compareParsers.php @@ -43,7 +43,7 @@ class CompareParsers extends DumpIterator { public function __construct() { parent::__construct(); $this->saveFailed = false; - $this->mDescription = "Run a file or dump with several parsers"; + $this->addDescription( 'Run a file or dump with several parsers' ); $this->addOption( 'parser1', 'The first parser to compare.', true, true ); $this->addOption( 'parser2', 'The second parser to compare.', true, true ); $this->addOption( 'tidy', 'Run tidy on the articles.', false, false ); @@ -97,7 +97,7 @@ class CompareParsers extends DumpIterator { if ( $this->hasOption( 'tidy' ) ) { global $wgUseTidy; if ( !$wgUseTidy ) { - $this->error( 'Tidy was requested but $wgUseTidy is not set in LocalSettings.php', true ); + $this->fatalError( 'Tidy was requested but $wgUseTidy is not set in LocalSettings.php' ); } $this->options->setTidy( true ); }