diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-17 12:32:41 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-17 12:32:41 +0000 |
commit | 021fec01b291e37a1ddec27628522c62f6a86521 (patch) | |
tree | 6658708aa0ce1716443c0da5c3087135ffb8701c /phpBB/style.php | |
parent | c09bd8c69f6acc30f581a6cd9136c7c3a7d8f8aa (diff) | |
download | forums-021fec01b291e37a1ddec27628522c62f6a86521.tar forums-021fec01b291e37a1ddec27628522c62f6a86521.tar.gz forums-021fec01b291e37a1ddec27628522c62f6a86521.tar.bz2 forums-021fec01b291e37a1ddec27628522c62f6a86521.tar.xz forums-021fec01b291e37a1ddec27628522c62f6a86521.zip |
- IE6 is not able to correctly cope with gzip compression
- hopefully fixed the rtl icon issue in FF without breaking ltr display.
git-svn-id: file:///svn/phpbb/trunk@8040 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/style.php')
-rw-r--r-- | phpBB/style.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/style.php b/phpBB/style.php index 0ce5460dac..c82ff764b3 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -129,7 +129,10 @@ if ($id) // gzip_compression if ($config['gzip_compress']) { - if (@extension_loaded('zlib') && !headers_sent()) + // IE6 is not able to compress the style (do not ask us why!) + $browser = (!empty($_SERVER['HTTP_USER_AGENT'])) ? strtolower(htmlspecialchars((string) $_SERVER['HTTP_USER_AGENT'])) : ''; + + if ($browser && strpos($browser, 'msie 6.0') === false && @extension_loaded('zlib') && !headers_sent()) { ob_start('ob_gzhandler'); } |