X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Floader%2Fclass_ClassLoader.php;h=b6094879ebab7c5d1cb0d2dcfb662c2c50d414c9;hb=0cd57c3885f00ad77fc599e53ed2f2d5e7ac267f;hp=7b551d8747c95ab9f3acea3b2040a8ea150c8155;hpb=3107989f93cfb5808ce9d75f1c7d2b7ee3d83d18;p=core.git diff --git a/inc/loader/class_ClassLoader.php b/inc/loader/class_ClassLoader.php index 7b551d87..b6094879 100644 --- a/inc/loader/class_ClassLoader.php +++ b/inc/loader/class_ClassLoader.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -261,10 +261,10 @@ class ClassLoader { // Directories which our class loader ignores by default while // deep-scanning the directory structure. - $ignoreList[] = "."; - $ignoreList[] = ".."; - $ignoreList[] = ".htaccess"; - $ignoreList[] = ".svn"; + $ignoreList[] = '.'; + $ignoreList[] = '..'; + $ignoreList[] = '.htaccess'; + $ignoreList[] = '.svn'; // Keep it in class for later usage $this->ignoreList = $ignoreList; @@ -312,10 +312,10 @@ class ClassLoader { $oldPrefix = $this->prefix; // Set new prefix (temporary!) - $this->prefix = "config-"; + $this->prefix = 'config-'; // Set base directory - $basePath = sprintf("%sinc/config/", $this->configInstance->readConfig('base_path')); + $basePath = $this->configInstance->readConfig('base_path') . 'inc/config/'; // Load all classes from the config directory $this->scanClassPath($basePath);