Added explanation

This commit is contained in:
Thomas Tanghus 2013-04-18 22:29:50 +02:00
parent 9facb67fab
commit e09c17de5b
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ class OC {
require_once $fullPath; require_once $fullPath;
return false; 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, '/')); $libpath = substr($path, 0, strpos($path, '/')) . '/lib' . substr($path, strpos($path, '/'));
$fullPath = stream_resolve_include_path($appDir['path'] . '/' . $libpath); $fullPath = stream_resolve_include_path($appDir['path'] . '/' . $libpath);
if (file_exists($fullPath)) { if (file_exists($fullPath)) {