mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
Specify caller in DB queries
Found warnings about this in WMF production logs. Change-Id: I5d47b0b1a15ab68e2fe2b2f5d14eb0c355b0b632
This commit is contained in:
parent
db83369b76
commit
b0c9bdc177
|
@ -60,7 +60,7 @@ class SearchFilters extends Maintenance {
|
|||
$pattern = $dbr->addQuotes( $this->getOption( 'pattern' ) );
|
||||
$consequence = $this->getOption( 'consequence' );
|
||||
|
||||
if ( $dbr->tableExists( 'abuse_filter' ) ) {
|
||||
if ( $dbr->tableExists( 'abuse_filter', __METHOD__ ) ) {
|
||||
$queryBuilder = $dbr->newSelectQueryBuilder()
|
||||
->select( [ 'dbname' => 'DATABASE()', 'af_id' ] )
|
||||
->from( 'abuse_filter' );
|
||||
|
|
Loading…
Reference in a new issue