mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
Pass correct variable to closure
Corrects Change-Id I3d8ace509ec0a9471cc68be3398bb1c108d6e570. Change-Id: I5937aef91710e48c5417cff55f824ae67825097d
This commit is contained in:
parent
377203eefc
commit
563bf12331
|
@ -1041,7 +1041,7 @@ class AbuseFilter {
|
|||
}
|
||||
|
||||
$fdb->onTransactionPreCommitOrIdle(
|
||||
function() use ( $fdb, $logged_local_filters, $method ) {
|
||||
function() use ( $fdb, $logged_global_filters, $method ) {
|
||||
$fdb->update( 'abuse_filter',
|
||||
array( 'af_hit_count=af_hit_count+1' ),
|
||||
array( 'af_id' => $logged_global_filters ),
|
||||
|
|
Loading…
Reference in a new issue