X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=c2c5ccf40e977af7bedbe91bbacbf745665de6aa;hb=7c966af21ad97198ed46513588c27a90014fe81f;hp=7c20748c51a59d1273e52ad58968d8f09a113d51;hpb=9c0eeb1a2d985f77134385975bf611ddc2bb8c7b;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(); }