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: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?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.