X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportDump.php;h=c2c5ccf40e977af7bedbe91bbacbf745665de6aa;hb=9dcd12714e1dd761a62d68520ea6f4a370b4b735;hp=98344734d1193fe7a67ebe9cc5f1411d4345544e;hpb=5354c219cd436583c0a0e401718018e8569f84e2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importDump.php b/maintenance/importDump.php index 98344734d1..c2c5ccf40e 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -84,7 +84,7 @@ TEXT ); $this->addOption( 'image-base-path', 'Import files from a specified path', false, true ); $this->addOption( 'skip-to', 'Start from nth page by skipping first n-1 pages', false, true ); - $this->addOption( 'username-interwiki', 'Use interwiki usernames with this prefix', false, true ); + $this->addOption( 'username-prefix', 'Prefix for interwiki usernames', false, true ); $this->addOption( 'no-local-users', 'Treat all usernames as interwiki. ' . 'The default is to assign edits to local users where they exist.', @@ -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(); }