diff options
-rw-r--r-- | classes/config.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/config.php b/classes/config.php index b373c9266..bad760e3e 100644 --- a/classes/config.php +++ b/classes/config.php @@ -314,6 +314,15 @@ class Config { static function sanity_check() { + /* + we don't actually need the DB object right now but some checks below might use ORM which won't be initialized + because it is set up in the Db constructor, which is why it's a good idea to invoke it as early as possible + + it is a bit of a hack, maybe ORM should be initialized somewhere else (functions.php?) + */ + + $pdo = Db::pdo(); + $errors = array(); if (strpos(self::get(Config::PLUGINS), "auth_") === false) { |