summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-08-24 17:24:07 +0200
committerMichael Hamann <michael@content-space.de>2012-08-24 17:24:07 +0200
commit99e10b7f23d5d909db42434325a51a9c626fd8fb (patch)
tree09f977559df425cc66340305ed80a039fc668615 /inc/init.php
parentc0f0f1f84f62ba4ddd9175b1768d22b2d2fbacc0 (diff)
downloadrpg-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/init.php')
-rw-r--r--inc/init.php4
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');
}