summaryrefslogtreecommitdiff
path: root/core/helpers/module.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-11 23:10:42 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-11 23:10:42 +0000
commit0f41cab73201ca2669f4cce88d7e195d7cb28285 (patch)
tree39933a62feebbf1d69be36afd4d57348e512af48 /core/helpers/module.php
parentbd992a97b217fe2c33bd7cb6df0f61adc7d64ebc (diff)
Guard load_modules() against the case that the database isn't installed.
Diffstat (limited to 'core/helpers/module.php')
-rw-r--r--core/helpers/module.php6
1 files changed, 6 insertions, 0 deletions
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');