mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Simplify AbuseFilter::addLogEntries
Change-Id: I54bcef8c69892d184ae2362282ed7477df2b4faa
This commit is contained in:
parent
8adffed8af
commit
3e1a963614
|
@ -1264,11 +1264,6 @@ class AbuseFilter {
|
|||
// Don't log if we were only throttling.
|
||||
if ( $thisLog['afl_actions'] != 'throttle' ) {
|
||||
$log_rows[] = $thisLog;
|
||||
|
||||
if ( !$globalIndex ) {
|
||||
$logged_local_filters[] = $filter;
|
||||
}
|
||||
|
||||
// Global logging
|
||||
if ( $globalIndex ) {
|
||||
$title = Title::makeTitle( $thisLog['afl_namespace'], $thisLog['afl_title'] );
|
||||
|
@ -1279,6 +1274,8 @@ class AbuseFilter {
|
|||
|
||||
$central_log_rows[] = $centralLog;
|
||||
$logged_global_filters[] = $globalIndex;
|
||||
} else {
|
||||
$logged_local_filters[] = $filter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue