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 );
if ( !$this->stripParametersEnabled ) {
return $text;
}
+
return preg_replace( '/(<a) [^>]+>/', '$1>', $text );
}
/* Look for the parser in a file appropiately named in the current folder */
if ( !class_exists( $parserName ) && file_exists( "$parserName.php" ) ) {
global $wgAutoloadClasses;
- $wgAutoloadClasses[ $parserName ] = realpath( '.' ) . "/$parserName.php";
+ $wgAutoloadClasses[$parserName] = realpath( '.' ) . "/$parserName.php";
}
}
-
}
$maintClass = "CompareParsers";