From 99e10b7f23d5d909db42434325a51a9c626fd8fb Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Fri, 24 Aug 2012 17:24:07 +0200 Subject: 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. --- inc/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/init.php') 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'); } -- cgit v1.2.3