Skip to content
Snippets Groups Projects
Commit 17ce1207 authored by Vincent Petry's avatar Vincent Petry
Browse files

Revert "Dont bother with stream_resolve_include_path if the path is already absolute"

parent 188b72a9
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