summaryrefslogtreecommitdiffstats
path: root/lib/minimizer.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-11-14 13:27:19 +0100
committerArthur Schiwon <blizzz@owncloud.com>2012-11-15 10:35:53 +0100
commitfd060d48493480bec6e25898812bf3b0fb0f3578 (patch)
tree7f3942a1506f629b232a0b32fe3f1d081e378180 /lib/minimizer.php
parent64a8a0c872f2dfa2f6c3ca4b0c26d11d3857e3a3 (diff)
downloadnextcloud-server-fd060d48493480bec6e25898812bf3b0fb0f3578.tar.gz
nextcloud-server-fd060d48493480bec6e25898812bf3b0fb0f3578.zip
really check if mod_deflate is loaded
Diffstat (limited to 'lib/minimizer.php')
-rw-r--r--lib/minimizer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/minimizer.php b/lib/minimizer.php
index 8a957e8266a..db522de74dc 100644
--- a/lib/minimizer.php
+++ b/lib/minimizer.php
@@ -33,7 +33,7 @@ abstract class OC_Minimizer {
// on some systems (e.g. SLES 11, but not Ubuntu) mod_deflate and zlib compression will compress the output twice.
// This results in broken core.css and core.js. To avoid it, we switch off zlib compression.
// Since mod_deflate is still active, Apache will compress what needs to be compressed, i.e. no disadvantage.
- if(function_exists('apache_setenv') && ini_get('zlib.output_compression')) {
+ if(function_exists('apache_get_modules') && ini_get('zlib.output_compression') && in_array('mod_deflate', apache_get_modules())) {
ini_set('zlib.output_compression', 'Off');
}
if ($encoding = OC_Request::acceptGZip()) {