Kohana v3.3.5
This commit is contained in:
@@ -121,5 +121,10 @@ if (($ob_len = ob_get_length()) !== FALSE)
|
||||
}
|
||||
}
|
||||
|
||||
// Enable the unittest module
|
||||
Kohana::modules(Kohana::modules() + array('unittest' => MODPATH.'unittest'));
|
||||
// Enable the unittest module if it is not already loaded - use the absolute path
|
||||
$modules = Kohana::modules();
|
||||
$unittest_path = realpath(__DIR__).DIRECTORY_SEPARATOR;
|
||||
if ( ! in_array($unittest_path, $modules)) {
|
||||
$modules['unittest'] = $unittest_path;
|
||||
Kohana::modules($modules);
|
||||
}
|
||||
|
Reference in New Issue
Block a user