summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-24 06:12:53 +0000
committerBharat Mediratta <bharat@menalto.com>2009-05-24 06:12:53 +0000
commita66046e4ca946ba4757f02c152204922ab66a9fe (patch)
treebdd07f7063252bbd526fc4fb440e17672b915404
parent3756c849c47aff76220b588f7157e12ef246ccfc (diff)
Ignore core when we're loading modules (it's not a module!)
-rw-r--r--core/helpers/module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php
index ca5af3fc..233030db 100644
--- a/core/helpers/module.php
+++ b/core/helpers/module.php
@@ -151,7 +151,7 @@ class module_Core {
// Reload module list from the config file since we'll do a refresh after calling install()
$core = Kohana::config_load("core");
$kohana_modules = $core["modules"];
- $modules = ORM::factory("module")->find_all();
+ $modules = ORM::factory("module")->where("name <>", "core")->find_all();
foreach ($modules as $module) {
self::$module_names[$module->name] = $module->name;