From 942a14740fa610fc55612aea89c9e10e608f6068 Mon Sep 17 00:00:00 2001 From: Harry Finn Date: Fri, 1 Dec 2017 12:07:20 +0000 Subject: [PATCH] Amend namespaced class autoloader * Corrects file name passed to namespaced autoloader as was previously being passed formatted class name which caused sub-namespaced classes to be prefixed with hyphens, making them impossible to find during lookup --- class.autoloaders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class.autoloaders.php b/class.autoloaders.php index 0b9c3c1..0826360 100644 --- a/class.autoloaders.php +++ b/class.autoloaders.php @@ -19,7 +19,7 @@ public static function autoload_classes($name) { if(file_exists($class_file_path)) require_once $class_file_path; $app_namespaced_class_file_path = self::app_namespaced_class_file_path( - $class_name + $name ); if(file_exists($app_namespaced_class_file_path)) {