From a7aa0fa1854d57dfe983311ede02b68f498c0f2e Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Tue, 28 May 2013 00:43:33 +0200 Subject: [PATCH] Fix AbuseFilter::disableConditionLimit() Used for Special:AbuseFilter/test Change-Id: I964efbbb0be7cae418746667778874790fdbb499 --- AbuseFilter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AbuseFilter.class.php b/AbuseFilter.class.php index c213fb6b5..183e8d0fc 100644 --- a/AbuseFilter.class.php +++ b/AbuseFilter.class.php @@ -278,7 +278,7 @@ class AbuseFilter { global $wgAbuseFilterConditionLimit; - if ( self::$condCount > $wgAbuseFilterConditionLimit ) { + if ( self::$condLimitEnabled && self::$condCount > $wgAbuseFilterConditionLimit ) { throw new MWException( 'Condition limit reached.' ); } }