public function __construct() {
parent::__construct();
- $this->mDescription = "Take page text out of an XML dump file and render basic HTML out to files";
+ $this->addDescription(
+ 'Take page text out of an XML dump file and render basic HTML out to files' );
$this->addOption( 'output-dir', 'The directory to output the HTML files to', true, true );
$this->addOption( 'prefix', 'Prefix for the rendered files (defaults to wiki)', false, true );
$this->addOption( 'parser', 'Use an alternative parser class', false, true );
}
$source = new ImportStreamSource( $this->getStdin() );
- $importer = new WikiImporter( $source );
+ $importer = new WikiImporter( $source, $this->getConfig() );
$importer->setRevisionCallback(
- array( &$this, 'handleRevision' ) );
+ [ $this, 'handleRevision' ] );
$importer->doImport();