From 067af207df98c9e04bc5240d80d912550ec0c621 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 29 Mar 2018 13:37:56 +0200 Subject: [PATCH] Fix path --- Autoloader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Autoloader.php b/Autoloader.php index 9f2d33905..996de4092 100644 --- a/Autoloader.php +++ b/Autoloader.php @@ -72,8 +72,8 @@ class Autoloader $class = str_replace(['_', '\\'], '/', $class); foreach (self::$paths as $path) { - if (file_exists($path = __DIR__ . '/../' . $class . '.php')) { - include_once $path; + if (file_exists($file = $path . $class . '.php')) { + include_once $file; return; }