Allow extensions to set $wgDisableCounters.
authorMark A. Hershberger <mah@nichework.com>
Tue, 21 Apr 2015 00:31:48 +0000 (20:31 -0400)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 27 Jun 2015 03:31:25 +0000 (04:31 +0100)
Alternatively, removing this completely might surface the issue for users
more quickly.  Without this change, resolving {T74420} becomes more of an issue.

Bug: T74420
Change-Id: Ib2dc9ed56a945acb06b64f3b85ff07ac2a6b7600
(cherry picked from commit 6b4d6662b5b5005bb84f4c5e6315288611bf57f1)

includes/Setup.php

index a97cfa6..90fbf61 100644 (file)
@@ -536,7 +536,9 @@ if ( $wgTmpDirectory === false ) {
 
 // We don't use counters anymore. Left here for extensions still
 // expecting this to exist. Should be removed sometime 1.26 or later.
-$wgDisableCounters = true;
+if ( !isset( $wgDisableCounters ) ) {
+       $wgDisableCounters = true;
+}
 
 if ( $wgMainWANCache === false ) {
        // Setup a WAN cache from $wgMainCacheType with no relayer.