X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FimportImages.php;h=e733b9a7df692b3cdb7f597d8f53095472f0b8b3;hb=fea3bbcdae4f052f769ab466df6e1f5d47d1383c;hp=b3866c13a2e38f791ade1916c68407c44824350d;hpb=dae4c94d893057345f62a3d498fb85c0a54de5a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/importImages.php b/maintenance/importImages.php index b3866c13a2..e733b9a7df 100644 --- a/maintenance/importImages.php +++ b/maintenance/importImages.php @@ -185,9 +185,7 @@ class ImportImages extends Maintenance { # Batch "upload" operation $count = count( $files ); if ( $count > 0 ) { - foreach ( $files as $file ) { - if ( $sleep && ( $processed > 0 ) ) { sleep( $sleep ); } @@ -336,7 +334,7 @@ class ImportImages extends Maintenance { $commentText, $props, $timestamp - ) ) { + )->isOK() ) { # We're done! $this->output( "done.\n" );