X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateRestrictions.php;h=668ba790fa1d5b52e6822fc52833af9470c35ed7;hb=01cdb1762c7207bd261ad03726a88cb9afc97bfb;hp=c4dccbc65f8d78bded25fecc6c9890af54e26b1a;hpb=2ef178072f6f46abde7bdcc2630389a8b2837557;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateRestrictions.php b/maintenance/updateRestrictions.php index c4dccbc65f..668ba790fa 100644 --- a/maintenance/updateRestrictions.php +++ b/maintenance/updateRestrictions.php @@ -46,11 +46,11 @@ class UpdateRestrictions extends Maintenance { $this->fatalError( "page_restrictions table does not exist" ); } - $start = $db->selectField( 'page', 'MIN(page_id)', false, __METHOD__ ); + $start = $db->selectField( 'page', 'MIN(page_id)', '', __METHOD__ ); if ( !$start ) { $this->fatalError( "Nothing to do." ); } - $end = $db->selectField( 'page', 'MAX(page_id)', false, __METHOD__ ); + $end = $db->selectField( 'page', 'MAX(page_id)', '', __METHOD__ ); # Do remaining chunk $end += $batchSize - 1; @@ -126,5 +126,5 @@ class UpdateRestrictions extends Maintenance { } } -$maintClass = "UpdateRestrictions"; +$maintClass = UpdateRestrictions::class; require_once RUN_MAINTENANCE_IF_MAIN;