From 17ce120736a6540e07834388fa803600d073e462 Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Sun, 29 Nov 2015 10:54:29 +0100
Subject: [PATCH] Revert "Dont bother with stream_resolve_include_path if the
 path is already absolute"

---
 lib/autoloader.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/autoloader.php b/lib/autoloader.php
index e41b4a08a6..f0fbd9e9f2 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;
 				}
-- 
GitLab