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 "Add recursion check to createService()"
[lhc/web/wiklou.git]
/
maintenance
/
importDump.php
diff --git
a/maintenance/importDump.php
b/maintenance/importDump.php
index
7c20748
..
c2c5ccf
100644
(file)
--- a/
maintenance/importDump.php
+++ b/
maintenance/importDump.php
@@
-112,8
+112,8
@@
TEXT
$this->setNsfilter( explode( '|', $this->getOption( 'namespaces' ) ) );
}
$this->setNsfilter( explode( '|', $this->getOption( 'namespaces' ) ) );
}
- if ( $this->hasArg() ) {
- $this->importFromFile( $this->getArg() );
+ if ( $this->hasArg(
0
) ) {
+ $this->importFromFile( $this->getArg(
0
) );
} else {
$this->importFromStdin();
}
} else {
$this->importFromStdin();
}