diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-11-29 10:54:29 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-11-29 10:54:29 +0100 |
commit | 17ce120736a6540e07834388fa803600d073e462 (patch) | |
tree | 5b0b0bddacc28afb0a126d8d6a44b84dd7e0c727 /lib/autoloader.php | |
parent | 188b72a9f33ae2c330a73a103d4e96348f1b3ef0 (diff) | |
download | nextcloud-server-17ce120736a6540e07834388fa803600d073e462.tar.gz nextcloud-server-17ce120736a6540e07834388fa803600d073e462.zip |
Revert "Dont bother with stream_resolve_include_path if the path is already absolute"
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r-- | lib/autoloader.php | 6 |
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; } |