X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FmoveBatch.php;h=47828e690f2010c4a9213e38b39ee602bb93c2c6;hb=715f040a5f1e7ae7fbc9f0a4729676d4ad597570;hp=9c20c67ded3c8dbc292d1358a0c567fbceb66780;hpb=c1c3302286deb92f3eb81a39b5ee61f8c413f5ad;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index 9c20c67ded..47828e690f 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -65,8 +65,8 @@ class MoveBatch extends Maintenance { $reason = $this->getOption( 'r', '' ); $interval = $this->getOption( 'i', 0 ); $noredirects = $this->hasOption( 'noredirects' ); - if ( $this->hasArg() ) { - $file = fopen( $this->getArg(), 'r' ); + if ( $this->hasArg( 0 ) ) { + $file = fopen( $this->getArg( 0 ), 'r' ); } else { $file = $this->getStdin(); }