re-added support for gzipped and unzipped files for db restore on empty installations - was (maybe accidentally) removed with housekeeping feature

This commit is contained in:
Christian Binder 2009-10-12 13:28:28 +00:00
parent 3cbf249bea
commit 501e715561

View File

@ -237,7 +237,10 @@ class db_backup
}
return $f;
}
if(!($f = fopen("compress.bzip2://$name.bz2", $mode)))
if(!($f = fopen("compress.bzip2://$name.bz2", $mode)) &&
!($f = fopen("compress.zlib://$name.gz",$mode)) &&
!($f = fopen($name,$mode))
)
{
//echo '-> !($f = fopen("compress.bzip2://$name.bz2", $mode))<br>'; // !
$lang_mode = $reading ? lang("reading") : lang("writing");