From 3f74f85fa899d9f8b077953aa6027de23c7441d7 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 8 Aug 2003 03:08:06 +0000 Subject: [PATCH] tiny fixlet for browsers that don't support gzip --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index bd625990d1..370f089b67 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -5,6 +5,8 @@ # Note: edit user interface and cache support functions have been # moved to separate EditPage and CacheManager classes. +include_once( "CacheManager.php" ); + class Article { /* private */ var $mContent, $mContentLoaded; /* private */ var $mUser, $mTimestamp, $mUserText; @@ -1314,7 +1316,7 @@ class Article { exit; } else { wfDebug( " tryFileCache() - starting buffer\n" ); - if($cache->useGzip()) { + if($cache->useGzip() && wfClientAcceptsGzip()) { /* For some reason, adding this header line over in CacheManager::saveToFileCache() fails on my test setup at home, though it works on the live install. -- 2.20.1