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:
parent
c0f0f1f84f
commit
99e10b7f23
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue