Unbreak file caching
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 30 Jul 2016 03:03:24 +0000 (20:03 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 30 Jul 2016 03:03:24 +0000 (20:03 -0700)
This was totally broken by 796d62d0

Change-Id: I34ee08e926117b9472151d9fd415c1dfc6a57de1

includes/cache/HTMLFileCache.php

index bb78aa0..ea2e20b 100644 (file)
@@ -127,7 +127,7 @@ class HTMLFileCache extends FileCacheBase {
                $ulang = $context->getLanguage();
 
                // Check that there are no other sources of variation
-               if ( $user->getId() || $user->getNewtalk() || $ulang->equals( $wgContLang ) ) {
+               if ( $user->getId() || $user->getNewtalk() || !$ulang->equals( $wgContLang ) ) {
                        return false;
                }
                // Allow extensions to disable caching