Fix root path registry value in setup mode

This commit is contained in:
Romain Neutron
2013-05-23 12:33:36 +02:00
parent 09940bfedd
commit d280673e13
2 changed files with 12 additions and 4 deletions

View File

@@ -20,6 +20,11 @@ class Setup_Registry implements registryInterface
{
protected $datas = array();
public function __construct()
{
$this->datas['GV_RootPath'] = realpath(__DIR__ . '/../../..') . '/';
}
public function get($key, $defaultvalue = null)
{
return isset($this->datas[$key]) ? $this->datas[$key] : $defaultvalue;