X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FupdateRestrictions.php;h=668ba790fa1d5b52e6822fc52833af9470c35ed7;hb=0afe39f591e03c17c621ac46516bd4fb255a14ff;hp=c4dccbc65f8d78bded25fecc6c9890af54e26b1a;hpb=08edb27f6ce31c676660a4ef89b87da79bde2cc2;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;