From a12ac0da372aff9d64c3570fa276a91248694c6c Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sat, 15 Dec 2018 17:35:53 +0100 Subject: directory separator for namspace autoload --- app/fn/fn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/fn/fn.php') diff --git a/app/fn/fn.php b/app/fn/fn.php index 3c7d32c..49db200 100644 --- a/app/fn/fn.php +++ b/app/fn/fn.php @@ -3,7 +3,7 @@ function class_autoloader($class) { - require('.'. DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . strtolower($class) . '.php'); + require('.'. DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . strtolower(str_replace('\\', DIRECTORY_SEPARATOR, $class)) . '.php'); } -- cgit v1.2.3