mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
Pass function name to IDatabase::selectField
Useful for logging Change-Id: I7a4dd801221d09f3f9dd4d847340935735d2b491
This commit is contained in:
parent
b93339b4f3
commit
54aa7a3f3a
|
@ -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" );
|
||||
|
|
Loading…
Reference in a new issue