Move main "languages" and "servername" to top level, "task-manager" and "binaries" to main configuration

This commit is contained in:
Romain Neutron
2013-11-18 15:15:44 +01:00
parent af807431b1
commit c3df531f59
15 changed files with 168 additions and 32 deletions

View File

@@ -307,7 +307,7 @@ class API_V1_adapter extends API_V1_Abstract
$ret['phraseanet']['debug'] = $app['debug'];
$ret['phraseanet']['maintenance'] = $app['conf']->get(['main', 'maintenance']);
$ret['phraseanet']['errorsLog'] = $app['debug'];
$ret['phraseanet']['serverName'] = $app['conf']->get(['main', 'servername']);
$ret['phraseanet']['serverName'] = $app['conf']->get('servername');
return $ret;
}
@@ -325,7 +325,7 @@ class API_V1_adapter extends API_V1_Abstract
$SEStatus = ['error' => $e->getMessage()];
}
$binaries = $app['conf']->get('binaries');
$binaries = $app['conf']->get(['main', 'binaries']);
return [
'global_values' => [