]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/class_ClassLoader.php
config fix
[mailer.git] / inc / loader / class_ClassLoader.php
index 61e8c216ffe532bb1875c22423acadb39135cb48..79389f647d41688511137437c1472586e8c40455 100644 (file)
@@ -274,15 +274,17 @@ class ClassLoader {
 
                // Set new prefix (temporary!)
                $this->prefix = "config-";
+               $this->preLen = strlen($this->prefix);
 
                // Set base directory
-               $basePath = sprintf("%s/inc/config/", PATH);
+               $basePath = sprintf("%sinc/config/", PATH);
 
                // Load all classes from the config directory
                $this->loadClasses($basePath);
 
                // Set the prefix back
                $this->prefix = $oldPrefix;
+               $this->preLen = strlen($this->prefix);
        }
 }