lookup for OCA classes in all apps folders
This commit is contained in:
parent
af4411e33d
commit
2cc77759aa
|
@ -96,7 +96,14 @@ class OC
|
||||||
} elseif (strpos($className, 'OCP\\') === 0) {
|
} elseif (strpos($className, 'OCP\\') === 0) {
|
||||||
$path = 'public/' . strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
|
$path = 'public/' . strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
|
||||||
} elseif (strpos($className, 'OCA\\') === 0) {
|
} elseif (strpos($className, 'OCA\\') === 0) {
|
||||||
$path = 'apps/' . strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
|
foreach(self::$APPSROOTS as $appDir) {
|
||||||
|
$path = $appDir['path'] . '/' . strtolower(str_replace('\\', '/', substr($className, 3)) . '.php');
|
||||||
|
$fullPath = stream_resolve_include_path($path);
|
||||||
|
if (file_exists($fullPath)) {
|
||||||
|
require_once $fullPath;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
} elseif (strpos($className, 'Sabre_') === 0) {
|
} elseif (strpos($className, 'Sabre_') === 0) {
|
||||||
$path = str_replace('_', '/', $className) . '.php';
|
$path = str_replace('_', '/', $className) . '.php';
|
||||||
} elseif (strpos($className, 'Symfony\\Component\\Routing\\') === 0) {
|
} elseif (strpos($className, 'Symfony\\Component\\Routing\\') === 0) {
|
||||||
|
|
Loading…
Reference in New Issue