Commit f80aba48 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

use tmpdir var instead of hardcoded /tmp

parent 21cc4f69
......@@ -29,7 +29,7 @@ if (extension_loaded('imagick')) {
$tmpdir = get_temp_dir();
$exec = $this->cmd . ' --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir ' . escapeshellarg($tmpdir) . ' ' . escapeshellarg($abspath);
$export = 'export HOME=/tmp';
$export = 'export HOME=/' . $tmpdir;
shell_exec($export . "\n" . $exec);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment