From: Brion Vibber Date: Fri, 8 Aug 2003 03:08:06 +0000 (+0000) Subject: tiny fixlet for browsers that don't support gzip X-Git-Tag: 1.1.0~356 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=3f74f85fa899d9f8b077953aa6027de23c7441d7;p=lhc%2Fweb%2Fwiklou.git tiny fixlet for browsers that don't support gzip --- 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.