X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=maintenance%2FmoveBatch.php;h=47828e690f2010c4a9213e38b39ee602bb93c2c6;hb=0ae01716c36bd03192a6dc79816beee8a0a74fa5;hp=9c20c67ded3c8dbc292d1358a0c567fbceb66780;hpb=06825cbeaeed8fdee45260bf268d2e4744fbb2e1;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(); }