Moved gatekeeper from core to bootstrap

This commit is contained in:
Nicolas Le Goff
2012-02-03 16:10:32 +01:00
parent 6a437a3831
commit 683fb4cd4e
2 changed files with 39 additions and 40 deletions

View File

@@ -39,9 +39,15 @@ class bootstrap
{
return static::$core;
}
static::$core = new Core($env);
if (\setup::is_installed())
{
$gatekeeper = \gatekeeper::getInstance();
$gatekeeper->check_directory();
}
return static::$core;
}