mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-23 18:28:20 +00:00
Don't define tags from deleted filters
Tags from deleted filters are excluded when the list of tags is fetched. So they aren't defined by the extension and can be deleted. They are excluded in all cases just to be sure. Bug: T90349 Change-Id: I41ec5203f689b4eb6ccf1f85ca9560a8c272705c
This commit is contained in:
parent
3a938cc9d2
commit
8bf9c62cbe
|
@ -450,7 +450,7 @@ class AbuseFilterHooks {
|
|||
# This is a pretty awful hack.
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
|
||||
$where = array( 'afa_consequence' => 'tag' );
|
||||
$where = array( 'afa_consequence' => 'tag', 'af_deleted' => false );
|
||||
if ( $enabled ) {
|
||||
$where['af_enabled'] = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue