Browse files

Reset the cascading file path properly before reinstalling.

  • Loading branch information...
1 parent 3da5ee2 commit 20a2d9f9a8bc0f69b3ebef846a88869870e4e0c4 @bharat bharat committed May 28, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/gallery_unit_test/controllers/gallery_unit_test.php
View
4 modules/gallery_unit_test/controllers/gallery_unit_test.php
@@ -95,10 +95,14 @@ function Index() {
module::$var_cache = array();
$db->clear_cache();
+ // Rest the cascading class path
+ Kohana::config_set("core", Kohana::config_load("core"));
+
// Install all modules
// Force gallery and user to be installed first to resolve dependencies.
gallery_installer::install(true);
module::load_modules();
+
module::install("user");
module::activate("user");
$modules = array();

0 comments on commit 20a2d9f

Please sign in to comment.