$this->startTime = wfTime();
$source = new ImportStreamSource( $handle );
- $importer = new ImportXMLReader( $source );
+ $importer = new WikiImporter( $source );
$importer->setDebug( $this->debug );
$importer->setPageCallback( array( &$this, 'reportPage' ) );
$this->startTime = wfTime();
$source = new ImportStreamSource( $this->getStdin() );
- $importer = new ImportXMLReader( $source );
+ $importer = new WikiImporter( $source );
$importer->setRevisionCallback(
array( &$this, 'handleRevision' ) );