diff --git a/maintenance/cleanup.php b/maintenance/cleanup.php index c5f59e73..e2b0b300 100644 --- a/maintenance/cleanup.php +++ b/maintenance/cleanup.php @@ -43,7 +43,7 @@ class Cleanup extends Maintenance { $dryRun = $this->hasOption( 'dry-run' ); $dbr = wfGetDB( DB_REPLICA ); - $maxID = (int)$dbr->selectField( 'page', 'MAX(page_id)' ); + $maxID = (int)$dbr->selectField( 'page', 'MAX(page_id)', [], __METHOD__ ); $reportingInterval = 100; $this->output( "Regexes are " . implode( ', ', array_map( 'count', $regexes ) ) . " bytes\n" );