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.
This commit is contained in:
Michael Hamann 2012-08-24 17:24:07 +02:00
parent c0f0f1f84f
commit 99e10b7f23
1 changed files with 2 additions and 2 deletions

View File

@ -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');
}