diff --git a/lib/classes/registry.class.php b/lib/classes/registry.class.php index 4e4bf39708..1ab18eecf4 100644 --- a/lib/classes/registry.class.php +++ b/lib/classes/registry.class.php @@ -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; }