Merge pull request #1769 from devenbansod/342_correction
'As Separate files' export works with ZIP compression only
This commit is contained in:
commit
d9d25db53d
@ -1403,7 +1403,7 @@ $cfg['Export']['compression'] = 'none';
|
||||
$cfg['Export']['lock_tables'] = false;
|
||||
|
||||
/**
|
||||
* Whether to export databases/tablse as seperate files
|
||||
* Whether to export databases/tables as separate files
|
||||
*
|
||||
* @global boolean $cfg['Export']['as_separate_files']
|
||||
*/
|
||||
|
||||
@ -586,6 +586,13 @@ function PMA_getHtmlForExportOptionsOutputCompression()
|
||||
$selected_compression = "none";
|
||||
}
|
||||
|
||||
// Since separate files export works with ZIP only
|
||||
if (isset($cfg['Export']['as_separate_files'])
|
||||
&& $cfg['Export']['as_separate_files']
|
||||
) {
|
||||
$selected_compression = "zip";
|
||||
}
|
||||
|
||||
$html = "";
|
||||
// zip and gzip encode features
|
||||
$is_zip = ($cfg['ZipDump'] && @function_exists('gzcompress'));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user