mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Remove registry's GV_RootPath calls
This commit is contained in:
@@ -128,7 +128,7 @@ class task_manager
|
||||
{
|
||||
$phpcli = $this->app['phraseanet.registry']->get('php_binary');
|
||||
|
||||
$cmd = $phpcli . ' -f ' . $this->app['phraseanet.registry']->get('GV_RootPath') . "bin/console scheduler:start";
|
||||
$cmd = $phpcli . ' -f ' . $this->app['root.path'] . "/bin/console scheduler:start";
|
||||
|
||||
return new Process($cmd);
|
||||
}
|
||||
@@ -165,7 +165,7 @@ class task_manager
|
||||
|
||||
$pid = NULL;
|
||||
|
||||
$lockdir = $this->app['phraseanet.registry']->get('GV_RootPath') . 'tmp/locks/';
|
||||
$lockdir = $this->app['root.path'] . '/tmp/locks/';
|
||||
if (($schedlock = fopen($lockdir . 'scheduler.lock', 'a+')) != FALSE) {
|
||||
if (flock($schedlock, LOCK_EX | LOCK_NB) === FALSE) {
|
||||
// already locked : running !
|
||||
|
Reference in New Issue
Block a user