Fix configuration usage

This commit is contained in:
Romain Neutron
2014-02-21 17:45:07 +01:00
parent 8a9b6d5d3c
commit de13d874a3
36 changed files with 92 additions and 127 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();
}