fix command line when using .zip
This commit is contained in:
parent
53f4276cb7
commit
700b3c33a0
|
@ -947,7 +947,7 @@ function exportEvents(
|
||||||
} elseif ( $exportFormat == 'zip' ) {
|
} elseif ( $exportFormat == 'zip' ) {
|
||||||
$archive = ZM_DIR_EXPORTS.'/'.$export_root.($connkey?'_'.$connkey:'').'.zip';
|
$archive = ZM_DIR_EXPORTS.'/'.$export_root.($connkey?'_'.$connkey:'').'.zip';
|
||||||
$command = 'zip ';
|
$command = 'zip ';
|
||||||
$command = ($exportStructure == 'flat' ? ' -j ' : ' -r ' ).escapeshellarg($archive);
|
$command .= ($exportStructure == 'flat' ? ' -j ' : ' -r ' ).escapeshellarg($archive);
|
||||||
$command .= $exportCompressed ? ' -9' : ' -0';
|
$command .= $exportCompressed ? ' -9' : ' -0';
|
||||||
} else {
|
} else {
|
||||||
Error("No exportFormat specified.");
|
Error("No exportFormat specified.");
|
||||||
|
|
Loading…
Reference in New Issue