mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 11:03:17 +00:00
Remove phraseanet services, update configuration
This commit is contained in:
@@ -313,10 +313,10 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
);
|
||||
|
||||
$ret['phraseanet']['environment'] = $app->getEnvironment();
|
||||
$ret['phraseanet']['debug'] = $app['phraseanet.configuration']->isDebug();
|
||||
$ret['phraseanet']['maintenance'] = $app['phraseanet.configuration']->isMaintained();
|
||||
$ret['phraseanet']['errorsLog'] = $app['phraseanet.configuration']->isDisplayingErrors();
|
||||
$ret['phraseanet']['serverName'] = $app['phraseanet.configuration']->getPhraseanet()->get('servername');
|
||||
$ret['phraseanet']['debug'] = $app['debug'];
|
||||
$ret['phraseanet']['maintenance'] = $app['phraseanet.configuration']['main']['maintenance'];
|
||||
$ret['phraseanet']['errorsLog'] = $app['debug'];
|
||||
$ret['phraseanet']['serverName'] = $app['phraseanet.configuration']['main']['servername'];
|
||||
|
||||
return $ret;
|
||||
}
|
||||
@@ -343,7 +343,7 @@ class API_V1_adapter extends API_V1_Abstract
|
||||
'httpServer' => array(
|
||||
'logErrors' => $app['phraseanet.registry']->get('GV_log_errors'),
|
||||
'phpTimezone' => ini_get('date.timezone'),
|
||||
'siteId' => $app['phraseanet.registry']->get('GV_sit'),
|
||||
'siteId' => $app['phraseanet.configuration']['main']['key'],
|
||||
'staticUrl' => $app['phraseanet.registry']->get('GV_STATIC_URL'),
|
||||
'defaultLanguage' => $app['phraseanet.registry']->get('id_GV_default_lng'),
|
||||
'allowIndexing' => $app['phraseanet.registry']->get('GV_allow_search_engine'),
|
||||
|
@@ -198,9 +198,9 @@ class API_V1_result
|
||||
|
||||
$this->app['dispatcher']->dispatch(PhraseaEvents::API_RESULT, new ApiResultEvent());
|
||||
|
||||
$conf = $this->app['phraseanet.configuration']->getPhraseanet();
|
||||
$conf = $this->app['phraseanet.configuration'];
|
||||
|
||||
if ($conf->has('api-timers') && true === $conf->get('api-timers')) {
|
||||
if (isset($conf['main']['api-timers']) && true === $conf['main']['api-timers']) {
|
||||
$ret['timers'] = $this->app['api.timers']->toArray();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user