From 0f41cab73201ca2669f4cce88d7e195d7cb28285 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 11 Dec 2008 23:10:42 +0000 Subject: Guard load_modules() against the case that the database isn't installed. --- core/helpers/module.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/helpers/module.php') diff --git a/core/helpers/module.php b/core/helpers/module.php index b09f121d..eddac2f0 100644 --- a/core/helpers/module.php +++ b/core/helpers/module.php @@ -77,6 +77,12 @@ class module_Core { } public static function load_modules() { + // Lightweight hack to make sure that we've got a real install. + // @todo replace this when we have a better way of detecting that the core is installed + if (Kohana::config('database.default.connection.pass') == 'p@ssw0rd') { + return array(); + } + try { $modules = Kohana::config('core.modules'); -- cgit v1.2.3