X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateFilearchiveSha1.php;h=ef57640b1051d96abb5354a693b88aff773ceafc;hb=178b7ad6a4cedc42e69c5fe00e55b63621bd0e47;hp=cbd969db0675968f550c6d33405d601785d07097;hpb=52e76843e268180a6f7add00f1105c42bf6a4ee8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateFilearchiveSha1.php b/maintenance/populateFilearchiveSha1.php index cbd969db06..ef57640b10 100644 --- a/maintenance/populateFilearchiveSha1.php +++ b/maintenance/populateFilearchiveSha1.php @@ -56,7 +56,7 @@ class PopulateFilearchiveSha1 extends LoggedUpdateMaintenance { } $this->output( "Populating fa_sha1 field from fa_storage_key\n" ); - $endId = $dbw->selectField( $table, 'MAX(fa_id)', false, __METHOD__ ); + $endId = $dbw->selectField( $table, 'MAX(fa_id)', '', __METHOD__ ); $batchSize = $this->getBatchSize(); $done = 0; @@ -104,5 +104,5 @@ class PopulateFilearchiveSha1 extends LoggedUpdateMaintenance { } } -$maintClass = "PopulateFilearchiveSha1"; +$maintClass = PopulateFilearchiveSha1::class; require_once RUN_MAINTENANCE_IF_MAIN;