dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "resourceloader: Consistently set state=ready after script execution (not before)"
[lhc/web/wiklou.git]
/
maintenance
/
dumpIterator.php
diff --git
a/maintenance/dumpIterator.php
b/maintenance/dumpIterator.php
index
4b2ff71
..
d8bc3a4
100644
(file)
--- a/
maintenance/dumpIterator.php
+++ b/
maintenance/dumpIterator.php
@@
-54,7
+54,7
@@
abstract class DumpIterator extends Maintenance {
$this->checkOptions();
if ( $this->hasOption( 'file' ) ) {
$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(
$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 );
}
$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' ) );
$importer->setRevisionCallback(
array( &$this, 'handleRevision' ) );