Browse Source

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

remotes/origin/fix-delete-homeidr-on-userdelete
Vincent Petry 10 years ago
parent
commit
17ce120736
  1. 6
      lib/autoloader.php

6
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;
}

Loading…
Cancel
Save