X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateImageSha1.php;h=84b65ee7ac9835f09be32065d326429997fdf0fa;hb=99d73dc9033603b03198f84854e9a5078bde89b8;hp=b581d6614c82bd289b7ef366a9614d38cbcd2a16;hpb=a85d1b9d0cd7f02111d3a647d5b91e3b1f334563;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateImageSha1.php b/maintenance/populateImageSha1.php index b581d6614c..84b65ee7ac 100644 --- a/maintenance/populateImageSha1.php +++ b/maintenance/populateImageSha1.php @@ -76,9 +76,7 @@ class PopulateImageSha1 extends LoggedUpdateMaintenance { __METHOD__ ); if ( !$res ) { - $this->error( "No such file: $file", true ); - - return false; + $this->fatalError( "No such file: $file" ); } $this->output( "Populating img_sha1 field for specified files\n" ); } else { @@ -119,7 +117,7 @@ class PopulateImageSha1 extends LoggedUpdateMaintenance { $numRows = $res->numRows(); $i = 0; foreach ( $res as $row ) { - if ( $i % $this->mBatchSize == 0 ) { + if ( $i % $this->getBatchSize() == 0 ) { $this->output( sprintf( "Done %d of %d, %5.3f%% \r", $i, $numRows, $i / $numRows * 100 ) ); wfWaitForSlaves();