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
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-11-29 12:54:29 +0300
committerVincent Petry <pvince81@owncloud.com>2015-11-29 12:54:29 +0300
commit17ce120736a6540e07834388fa803600d073e462 (patch)
tree5b0b0bddacc28afb0a126d8d6a44b84dd7e0c727 /lib/autoloader.php
parent188b72a9f33ae2c330a73a103d4e96348f1b3ef0 (diff)
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.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;
}