Skip to content
Snippets Groups Projects
Commit 501252a5 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

compression fallback

This updates the availability check of the choosen compression method. If bzip2
is configured but not available it falls back to gzip if available.

darcs-hash:20060825144739-7ad00-9f7ce54fd1dbf0d7a8272393e9bc02d862b28fff.gz
parent ff3ed99f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment