summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-04-18 22:29:50 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-04-18 22:29:50 +0200
commite09c17de5b25d6c728bc6b828dcc686ce66ae134 (patch)
treeb32154f7056f4945b6275eee5a6dc7d952010364
parent9facb67fab0cc9556e681ff75ec59218eb2ba34b (diff)
downloadnextcloud-server-e09c17de5b25d6c728bc6b828dcc686ce66ae134.tar.gz
nextcloud-server-e09c17de5b25d6c728bc6b828dcc686ce66ae134.zip
Added explanation
-rw-r--r--lib/base.php1
1 files changed, 1 insertions, 0 deletions
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)) {