Use configurtion file instead of GV

This commit is contained in:
Nicolas Le Goff
2014-07-28 11:59:21 +02:00
parent 76cb4fad28
commit c752141ff2
10 changed files with 11 additions and 22 deletions

View File

@@ -107,7 +107,7 @@ class API_V1_adapter extends API_V1_Abstract
{
$result = new \API_V1_result($app, $app['request'], $this);
if ($app['phraseanet.registry"].get("GV_disable_task_manager']) {
if (false === $app['phraseanet.configuration']['main']['task-manager']['enabled']) {
$ret = array('state' => 'disabled');
} else {
$taskManager = $app['task-manager'];