mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
Update fax_send.php
Fax conversion failed until adding the /tmp as the home directory in this way.
This commit is contained in:
@@ -360,7 +360,9 @@ function fax_split_dtmf(&$fax_number, &$fax_dtmf){
|
||||
//convert uploaded file to pdf, if necessary
|
||||
if ($fax_file_extension != "pdf" && $fax_file_extension != "tif") {
|
||||
chdir($dir_fax_temp);
|
||||
exec("libreoffice --headless --convert-to pdf --outdir ".$dir_fax_temp." ".$dir_fax_temp.'/'.$fax_name.'.'.$fax_file_extension);
|
||||
if ($IS_WINDOWS) { $command = ''; } else { $command = 'export HOME=/tmp && '; }
|
||||
$command .= 'libreoffice --headless --convert-to pdf --outdir '.$dir_fax_temp.' '.$dir_fax_temp.'/'.$fax_name.'.'.$fax_file_extension;
|
||||
exec($command);
|
||||
@unlink($dir_fax_temp.'/'.$fax_name.'.'.$fax_file_extension);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user