From: Thomas Tanghus Date: Thu, 18 Apr 2013 20:29:50 +0000 (+0200) Subject: Added explanation X-Git-Tag: v6.0.0alpha2~857^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e09c17de5b25d6c728bc6b828dcc686ce66ae134;p=nextcloud-server.git Added explanation --- diff --git a/lib/base.php b/lib/base.php index 72645d07786..16b0da7c77e 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)) {