Fix scheduler

This commit is contained in:
Romain Neutron
2012-10-24 17:24:49 +02:00
parent 3d098b0c81
commit 5bd6035ca8
2 changed files with 4 additions and 1 deletions

View File

@@ -192,6 +192,9 @@ class Core extends \Pimple
if ($core->getRegistry()->get('swf_extract_binary')) { if ($core->getRegistry()->get('swf_extract_binary')) {
$conf->set('SwfExtract', $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']); $drivers = new \MediaAlchemyst\DriversContainer($conf, $core['monolog']);

View File

@@ -55,7 +55,7 @@ $descriptors[2] = array("file", $nullfile, "a+");
$pipes = null; $pipes = null;
$cwd = $registry->get('GV_RootPath') . "bin/"; $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; $pid = NULL;
if (is_resource($proc)) { if (is_resource($proc)) {