X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fclass_ClassLoader.php;h=79389f647d41688511137437c1472586e8c40455;hb=49307b1d5278d5a968ab391dd88abb9b9ee06df8;hp=61e8c216ffe532bb1875c22423acadb39135cb48;hpb=1203b1ad0320972541b4a60f0fd4e0bc67e24425;p=mailer.git diff --git a/inc/loader/class_ClassLoader.php b/inc/loader/class_ClassLoader.php index 61e8c216ff..79389f647d 100644 --- a/inc/loader/class_ClassLoader.php +++ b/inc/loader/class_ClassLoader.php @@ -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); } }