Fix implode paramater order and few other minor edits.
This commit is contained in:
parent
22db796b11
commit
58fc71fce9
|
|
@ -52,7 +52,7 @@ if (!function_exists('exec_in_dir')) {
|
|||
if ($cwd)
|
||||
chdir($cwd);
|
||||
$ok = ($ret == 0);
|
||||
return join($output, "\n");
|
||||
return implode("\n", $output);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ if (!function_exists('path_join')) {
|
|||
}
|
||||
|
||||
$paths = array_filter($paths);
|
||||
return $prefix . join('/', $paths);
|
||||
return $prefix . implode('/', $paths);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -177,10 +177,10 @@ if (!function_exists('tiff2pdf')) {
|
|||
$page_width = sprintf('%.4f', $page_width);
|
||||
$page_height = sprintf('%.4f', $page_height);
|
||||
|
||||
$cmd = join(array('tiff2pdf',
|
||||
$cmd = implode(' ', array('tiff2pdf',
|
||||
'-o', correct_path($pdf_file_name),
|
||||
correct_path($tiff_file_name),
|
||||
), ' ');
|
||||
));
|
||||
|
||||
$resp = exec_in_dir($dir_fax, $cmd, $ok);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue