Merge pull request #965 from romainneutron/host-configuration

[3.9] Add configuration per host
This commit is contained in:
Nicolas Le Goff
2014-02-24 12:30:26 +01:00
44 changed files with 1051 additions and 440 deletions

View File

@@ -199,9 +199,7 @@ class API_V1_result
$this->app['dispatcher']->dispatch(PhraseaEvents::API_RESULT, new ApiResultEvent());
$conf = $this->app['configuration.store'];
if (isset($conf['main']['api-timers']) && true === $conf['main']['api-timers']) {
if ($this->app['conf']->get(['main', 'api-timers'], false)) {
$ret['timers'] = $this->app['api.timers']->toArray();
}