From: Mark A. Hershberger Date: Tue, 21 Apr 2015 00:31:48 +0000 (-0400) Subject: Allow extensions to set $wgDisableCounters. X-Git-Tag: 1.31.0-rc.0~10955 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=364f0b716dc6dab82222bf43c4d621abe0ef3b00;p=lhc%2Fweb%2Fwiklou.git Allow extensions to set $wgDisableCounters. 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) --- diff --git a/includes/Setup.php b/includes/Setup.php index a97cfa6ad9..90fbf61a3e 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -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.