Disable $wgDebugToolbar if file cache is turned on, as with $$wgShowIPinHeader
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 7 Feb 2012 21:30:41 +0000 (21:30 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 7 Feb 2012 21:30:41 +0000 (21:30 +0000)
includes/Setup.php

index 00df897..1e0ab0b 100644 (file)
@@ -299,8 +299,10 @@ $wgContLanguageCode = $wgLanguageCode;
 
 # Easy to forget to falsify $wgShowIPinHeader for static caches.
 # If file cache or squid cache is on, just disable this (DWIMD).
+# Do the same for $wgDebugToolbar.
 if ( $wgUseFileCache || $wgUseSquid ) {
        $wgShowIPinHeader = false;
+       $wgDebugToolbar = false;
 }
 
 # $wgAllowRealName and $wgAllowUserSkin were removed in 1.16