mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
check if configuration is installed
This commit is contained in:
@@ -63,12 +63,14 @@ class registry implements registryInterface
|
||||
new \Alchemy\Phrasea\Core\Configuration\Parser\Yaml()
|
||||
);
|
||||
$configuration = new \Alchemy\Phrasea\Core\Configuration($handler);
|
||||
$phraseanet = $configuration->getPhraseanet();
|
||||
$this->cache->set('GV_RootPath', dirname(dirname(__DIR__)) . '/');
|
||||
$this->cache->set('GV_ServerName', $phraseanet->get('servername'));
|
||||
$this->cache->set('GV_debug', $configuration->isDebug());
|
||||
$this->cache->set('GV_maintenance', $configuration->isMaintained());
|
||||
|
||||
$this->cache->set('GV_RootPath', dirname(dirname(__DIR__)) . '/');
|
||||
if ($configuration->isInstalled())
|
||||
{
|
||||
$this->cache->set('GV_ServerName', $configuration->getPhraseanet()->get('servername'));
|
||||
$this->cache->set('GV_debug', $configuration->isDebug());
|
||||
$this->cache->set('GV_maintenance', $configuration->isMaintained());
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user