From a66046e4ca946ba4757f02c152204922ab66a9fe Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 24 May 2009 06:12:53 +0000 Subject: Ignore core when we're loading modules (it's not a module!) --- core/helpers/module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers/module.php') 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; -- cgit v1.2.3