diff --git a/lib/base.php b/lib/base.php index 72645d0778..16b0da7c77 100644 --- a/lib/base.php +++ b/lib/base.php @@ -103,6 +103,7 @@ class OC { require_once $fullPath; return false; } + // If not found in the root of the app directory, insert '/lib' after app id and try again. $libpath = substr($path, 0, strpos($path, '/')) . '/lib' . substr($path, strpos($path, '/')); $fullPath = stream_resolve_include_path($appDir['path'] . '/' . $libpath); if (file_exists($fullPath)) {