Skip to content
Snippets Groups Projects
Commit de02cde7 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #20821 from owncloud/revert-20792-autoloader-absolute-paths

Revert "Dont bother with stream_resolve_include_path if the path is already absolute"
parents 5a9b892b 17ce1207
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment