mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Pass function name to database functions
Useful for logging Change-Id: Ib6b3ad814dd24d31aab37be486ff32d3f57c7905
This commit is contained in:
parent
1f72bc838c
commit
6e2d7931a5
|
@ -838,7 +838,7 @@ class AbuseFilterHooks {
|
|||
*/
|
||||
public static function onUnitTestsAfterDatabaseSetup( IMaintainableDatabase $db, $prefix ) {
|
||||
$externalPrefix = AbuseFilterConsequencesTest::DB_EXTERNAL_PREFIX;
|
||||
if ( $db->tableExists( $externalPrefix . AbuseFilterConsequencesTest::$externalTables[0] ) ) {
|
||||
if ( $db->tableExists( $externalPrefix . AbuseFilterConsequencesTest::$externalTables[0], __METHOD__ ) ) {
|
||||
// Check a random table to avoid unnecessary table creations. See T155147.
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1285,7 +1285,8 @@ class AbuseFilterRunner {
|
|||
[ 'af_id' => $loggedLocalFilters ],
|
||||
$method
|
||||
);
|
||||
}
|
||||
},
|
||||
$method
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1314,7 +1315,8 @@ class AbuseFilterRunner {
|
|||
[ 'af_id' => $loggedGlobalFilters ],
|
||||
$method
|
||||
);
|
||||
}
|
||||
},
|
||||
$method
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue