X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=c2c5ccf40e977af7bedbe91bbacbf745665de6aa;hb=06aaf493e12f998784c7c9294e8533d979623308;hp=7c20748c51a59d1273e52ad58968d8f09a113d51;hpb=e94964989dc3508ccfcd4f6d71a912b98a75a5be;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index 7c20748c51..c2c5ccf40e 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -112,8 +112,8 @@ TEXT $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(); }