mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix scheduler
This commit is contained in:
@@ -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']);
|
||||||
|
|
||||||
|
@@ -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)) {
|
||||||
|
Reference in New Issue
Block a user