aboutsummaryrefslogtreecommitdiff
path: root/app/fn
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-15 17:35:53 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-15 17:35:53 +0100
commita12ac0da372aff9d64c3570fa276a91248694c6c (patch)
tree3ee0bf4f01306e98a9d95ce10d2fb0862abe7631 /app/fn
parentc4a005a69a854682f064016d428d23e50c6e9dee (diff)
downloadwcms-a12ac0da372aff9d64c3570fa276a91248694c6c.tar.gz
wcms-a12ac0da372aff9d64c3570fa276a91248694c6c.zip
directory separator for namspace autoload
Diffstat (limited to 'app/fn')
-rw-r--r--app/fn/fn.php2
1 files changed, 1 insertions, 1 deletions
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');
}