From de0d5133530117b6999e6e0955138dc3bd3c66b5 Mon Sep 17 00:00:00 2001 From: Mahmoud Elnezamy Date: Fri, 22 Mar 2019 02:13:32 +0200 Subject: [PATCH] Update App.php --- system/App.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/App.php b/system/App.php index 05114c1..1999970 100644 --- a/system/App.php +++ b/system/App.php @@ -59,6 +59,8 @@ public function autoload() return include_once($class); } elseif (is_file($class = BASE_PATH . $namespace . lcfirst($classNameOnly) . '.php')) { return include_once($class); + }elseif (is_file($class = BASE_PATH . strtolower($namespace) . lcfirst($classNameOnly) . '.php')) { + return include_once($class); } return false; });