includes/functions.php
changeset 1226 de56132c008d
parent 1223 7dca925b0209
child 1227 bdac73ed481e
--- a/includes/functions.php	Sun Mar 28 21:40:37 2010 -0400
+++ b/includes/functions.php	Sun Mar 28 21:49:26 2010 -0400
@@ -3215,7 +3215,7 @@
   // Compress buffered output if required and send to browser
   // Sorry, doesn't work in IE. What else is new?
   //
-  if ( $do_gzip && function_exists('gzdeflate') && !strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') && !headers_sent() && $gzip_supported )
+  if ( $do_gzip && getConfig('gzip_output', false) == 1 && function_exists('gzdeflate') && !strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') && !headers_sent() && $gzip_supported )
   {
     $gzip_contents = ob_get_contents();
     ob_end_clean();