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:
cenarium 2015-02-21 17:47:49 +01:00
parent 3a938cc9d2
commit 8bf9c62cbe

View file

@ -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;
}