use tmpdir var instead of hardcoded /tmp

This commit is contained in:
Georg Ehrke 2013-06-05 12:58:39 +02:00
parent 21cc4f6960
commit f80aba4893
1 changed files with 1 additions and 1 deletions

View File

@ -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);