mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Partially revert r20906 -- it was breaking the test framework.
This commit is contained in:
@@ -151,12 +151,17 @@ 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")->where("name <>", "core")->find_all();
|
||||
$modules = ORM::factory("module")->find_all();
|
||||
|
||||
foreach ($modules as $module) {
|
||||
self::$module_names[$module->name] = $module->name;
|
||||
self::$modules[$module->name] = $module;
|
||||
$kohana_modules[] = MODPATH . $module->name;
|
||||
|
||||
// @todo For some reason if we don't load the core module here, the test framework fails.
|
||||
// This requires some investigation.
|
||||
if ($module->name != "core") {
|
||||
$kohana_modules[] = MODPATH . $module->name;
|
||||
}
|
||||
}
|
||||
Kohana::config_set("core.modules", $kohana_modules);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user