Upstream Patch: Enable SYSMODS to hold upstream modules
This commit is contained in:
@@ -570,6 +570,13 @@ class Kohana_Core {
|
||||
}
|
||||
// Add the module to include paths
|
||||
$paths[] = realpath(MODPATH.$path).DIRECTORY_SEPARATOR;
|
||||
|
||||
// Add our system modules path
|
||||
}
|
||||
if (is_dir(SMDPATH.$path))
|
||||
{
|
||||
// Add the module to include paths
|
||||
$paths[] = realpath(SMDPATH.$path).DIRECTORY_SEPARATOR;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1383,11 +1390,15 @@ class Kohana_Core {
|
||||
{
|
||||
$file = 'SYSPATH'.DIRECTORY_SEPARATOR.substr($file, strlen(SYSPATH));
|
||||
}
|
||||
elseif (strpos($file, SMDPATH) === 0)
|
||||
{
|
||||
$file = 'SMDPATH'.DIRECTORY_SEPARATOR.substr($file, strlen(SMDPATH));
|
||||
}
|
||||
elseif (strpos($file, MODPATH) === 0)
|
||||
{
|
||||
$file = 'MODPATH'.DIRECTORY_SEPARATOR.substr($file, strlen(MODPATH));
|
||||
}
|
||||
elseif (strpos($file, OVERPATH) === 0)
|
||||
elseif (OVERPATH AND strpos($file, OVERPATH) === 0)
|
||||
{
|
||||
$file = 'OVERPATH/'.substr($file, strlen(OVERPATH));
|
||||
}
|
||||
|
Reference in New Issue
Block a user