Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/autoloader.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php
index e41b4a08a6a..f0fbd9e9f27 100644
--- a/lib/autoloader.php
+++ b/lib/autoloader.php
@@ -170,11 +170,7 @@ class Autoloader {
// No cache or cache miss
$pathsToRequire = array();
foreach ($this->findClass($class) as $path) {
- if ($path[0] === '/') {
- $fullPath = file_exists($path) ? $path : false;
- } else {
- $fullPath = stream_resolve_include_path($path);
- }
+ $fullPath = stream_resolve_include_path($path);
if ($fullPath && $this->isValidPath($fullPath)) {
$pathsToRequire[] = $fullPath;
}