summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/init.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/init.php b/inc/init.php
index 783d3d9c4..b6fdc0e73 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -94,8 +94,11 @@
@ini_set('magic_quotes_sybase',0);
// disable gzip if not available
- if($conf['usegzip'] && !function_exists('gzopen')){
- $conf['usegzip'] = 0;
+ if($conf['compression'] == 'bzip2' && !function_exists('bzopen')){
+ $conf['compression'] = 'gzip';
+ }
+ if($conf['compression'] == 'gzip' && !function_exists('gzopen')){
+ $conf['compression'] = 0;
}
// precalculate file creation modes