summaryrefslogtreecommitdiff
path: root/maintenance/dumpIterator.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2015-06-04 07:31:04 +0200
committerPierre Schmitz <pierre@archlinux.de>2015-06-04 07:58:39 +0200
commitf6d65e533c62f6deb21342d4901ece24497b433e (patch)
treef28adf0362d14bcd448f7b65a7aaf38650f923aa /maintenance/dumpIterator.php
parentc27b2e832fe25651ef2410fae85b41072aae7519 (diff)
Update to MediaWiki 1.25.1
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' ) );