]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added explanation
authorThomas Tanghus <thomas@tanghus.net>
Thu, 18 Apr 2013 20:29:50 +0000 (22:29 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 18 Apr 2013 20:29:50 +0000 (22:29 +0200)
lib/base.php

index 72645d077862695595020fd0003845b701ebee1b..16b0da7c77eb60d3819570ed65dc9cb54ff12462 100644 (file)
@@ -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)) {