mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 22:15:26 +00:00
Merge "Fix usage of $db->nextSequenceValue()"
This commit is contained in:
commit
45952a5894
|
@ -1118,10 +1118,7 @@ class AbuseFilter {
|
|||
$data['afl_var_dump'] = $var_dump;
|
||||
$data['afl_id'] = $dbw->nextSequenceValue( 'abuse_filter_log_afl_id_seq' );
|
||||
$dbw->insert( 'abuse_filter_log', $data, __METHOD__ );
|
||||
$local_log_ids[] = $dbw->insertId();
|
||||
if ( $data['afl_id'] === null ) {
|
||||
$data['afl_id'] = $dbw->insertId();
|
||||
}
|
||||
$local_log_ids[] = $data['afl_id'] = $dbw->insertId();
|
||||
// Give grep a chance to find the usages:
|
||||
// logentry-abusefilter-hit
|
||||
$entry = new ManualLogEntry( 'abusefilter', 'hit' );
|
||||
|
|
Loading…
Reference in a new issue