diff --git a/lib/Alchemy/Phrasea/Core.php b/lib/Alchemy/Phrasea/Core.php index d3d039b81d..5e3812bb31 100644 --- a/lib/Alchemy/Phrasea/Core.php +++ b/lib/Alchemy/Phrasea/Core.php @@ -192,6 +192,9 @@ class Core extends \Pimple if ($core->getRegistry()->get('swf_extract_binary')) { $conf->set('SwfExtract', $core->getRegistry()->get('swf_extract_binary')); } + if ($core->getRegistry()->get('ghostscript_binary')) { + $conf->set('ghostscript', $core->getRegistry()->get('ghostscript_binary')); + } $drivers = new \MediaAlchemyst\DriversContainer($conf, $core['monolog']); diff --git a/www/admin/runscheduler.php b/www/admin/runscheduler.php index 15b3dc253a..21d87bd762 100644 --- a/www/admin/runscheduler.php +++ b/www/admin/runscheduler.php @@ -55,7 +55,7 @@ $descriptors[2] = array("file", $nullfile, "a+"); $pipes = null; $cwd = $registry->get('GV_RootPath') . "bin/"; -$proc = proc_open($cmd, $descriptors, $pipes, $cwd, null, array('bypass_shell' => true)); +$proc = proc_open($cmd, $descriptors, $pipes, $cwd, $_SERVER, array('bypass_shell' => true)); $pid = NULL; if (is_resource($proc)) {