diff options
author | Michael Hamann <michael@content-space.de> | 2012-08-24 17:24:07 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2012-08-24 17:24:07 +0200 |
commit | 99e10b7f23d5d909db42434325a51a9c626fd8fb (patch) | |
tree | 09f977559df425cc66340305ed80a039fc668615 /inc | |
parent | c0f0f1f84f62ba4ddd9175b1768d22b2d2fbacc0 (diff) | |
download | rpg-99e10b7f23d5d909db42434325a51a9c626fd8fb.tar.gz rpg-99e10b7f23d5d909db42434325a51a9c626fd8fb.tar.bz2 |
Always disable compression when sitemaps are delivered
The class loader isn't available at that place in inc/init.php so the
check if the sitemap is compressed didn't work.
Diffstat (limited to 'inc')
-rw-r--r-- | inc/init.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/init.php b/inc/init.php index 4105225ea..3cafab986 100644 --- a/inc/init.php +++ b/inc/init.php @@ -133,9 +133,9 @@ global $ACT; if ($conf['gzip_output'] && !defined('DOKU_DISABLE_GZIP_OUTPUT') && function_exists('ob_gzhandler') && - // Disable compression when a compressed sitemap might be delivered + // Disable compression when a (compressed) sitemap might be delivered // See https://bugs.dokuwiki.org/index.php?do=details&task_id=2576 - !($ACT == 'sitemap' && Sitemapper::sitemapIsCompressed())) { + $ACT != 'sitemap') { ob_start('ob_gzhandler'); } |