r1530 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1529‎ | r1530 | r1531 >
Date:03:08, 8 August 2003
Author:vibber
Status:old
Tags:
Comment:
tiny fixlet for browsers that don't support gzip
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -5,6 +5,8 @@
66 # Note: edit user interface and cache support functions have been
77 # moved to separate EditPage and CacheManager classes.
88
 9+include_once( "CacheManager.php" );
 10+
911 class Article {
1012 /* private */ var $mContent, $mContentLoaded;
1113 /* private */ var $mUser, $mTimestamp, $mUserText;
@@ -1314,7 +1316,7 @@
13151317 exit;
13161318 } else {
13171319 wfDebug( " tryFileCache() - starting buffer\n" );
1318 - if($cache->useGzip()) {
 1320+ if($cache->useGzip() && wfClientAcceptsGzip()) {
13191321 /* For some reason, adding this header line over in
13201322 CacheManager::saveToFileCache() fails on my test
13211323 setup at home, though it works on the live install.

Status & tagging log