summaryrefslogtreecommitdiff
path: root/maintenance/dumpIterator.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/dumpIterator.php')
-rw-r--r--maintenance/dumpIterator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/dumpIterator.php b/maintenance/dumpIterator.php
index 4b2ff717..d8bc3a4d 100644
--- a/maintenance/dumpIterator.php
+++ b/maintenance/dumpIterator.php
@@ -54,7 +54,7 @@ abstract class DumpIterator extends Maintenance {
$this->checkOptions();
if ( $this->hasOption( 'file' ) ) {
- $revision = new WikiRevision;
+ $revision = new WikiRevision( $this->getConfig() );
$revision->setText( file_get_contents( $this->getOption( 'file' ) ) );
$revision->setTitle( Title::newFromText(
@@ -73,7 +73,7 @@ abstract class DumpIterator extends Maintenance {
$this->error( "Sorry, I don't support dump filenames yet. "
. "Use - and provide it on stdin on the meantime.", true );
}
- $importer = new WikiImporter( $source );
+ $importer = new WikiImporter( $source, $this->getConfig() );
$importer->setRevisionCallback(
array( &$this, 'handleRevision' ) );