AutoLoader vereinfacht
authorMarkus Bröker <broeker.markus@googlemail.com>
Thu, 12 Nov 2015 21:59:50 +0100
changeset 2 40769b11e94f
parent 1 56e0dbd5c243
child 3 396b6d2e0466
AutoLoader vereinfacht
config/config.php
--- a/config/config.php
+++ b/config/config.php
@@ -15,7 +15,7 @@
 function bfw_autoLoader($class) {
     $nsClass = str_replace('\\', '/', $class);
     $filename = sprintf('%s/classes/%s.php', TICKET_PATH, $nsClass);
-    $classPath = sprintf('classes/%s.php', str_replace('\\', '/', $nsClass));
+    $classPath = sprintf('classes/%s.php', $nsClass);
 
     if (file_exists($filename)) {
         require_once "$classPath";