From: Roland Häder Date: Tue, 9 Dec 2008 19:19:41 +0000 (+0000) Subject: Error messages are longer surpressed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=055cdee905b52916539aed45a2f9c51f63b4a4ff;p=core.git Error messages are longer surpressed --- diff --git a/inc/config.php b/inc/config.php index 143ad06c..a930355f 100644 --- a/inc/config.php +++ b/inc/config.php @@ -25,9 +25,9 @@ */ // Load the class from inc/config direktory -@require_once(dirname(__FILE__) . '/classes/interfaces/class_FrameworkInterface.php'); -@require_once(dirname(__FILE__) . '/classes/interfaces/registry/class_Registerable.php'); -@require_once(dirname(__FILE__) . '/config/class_FrameworkConfiguration.php'); +require_once(dirname(__FILE__) . '/classes/interfaces/class_FrameworkInterface.php'); +require_once(dirname(__FILE__) . '/classes/interfaces/registry/class_Registerable.php'); +require_once(dirname(__FILE__) . '/config/class_FrameworkConfiguration.php'); // Get a new configuration instance $cfg = FrameworkConfiguration::getInstance(); diff --git a/inc/loader/class_ClassLoader.php b/inc/loader/class_ClassLoader.php index 134b8c10..dbba1ff1 100644 --- a/inc/loader/class_ClassLoader.php +++ b/inc/loader/class_ClassLoader.php @@ -209,22 +209,18 @@ class ClassLoader { * Scans recursively a local path for class files which must have a prefix and a suffix as given by $this->suffix and $this->prefix * * @param $basePath The relative base path to 'base_path' constant for all classes - * @param $ignoreList An optional list (array or string) of directory names which shall be ignored + * @param $ignoreList An optional list (array forced) of directory and file names which shall be ignored * @return void */ - public function loadClasses ($basePath, $ignoreList = array() ) { + public function loadClasses ($basePath, array $ignoreList = array() ) { // Is a list has been restored from cache, don't read it again if ($this->listCached === true) { // Abort here return; } - // Convert string to array - if (!is_array($ignoreList)) $ignoreList = array($ignoreList); - // Directories which our class loader ignores by default while - // deep-scanning the directory structure. See scanLocalPath() for - // details. + // deep-scanning the directory structure. $ignoreList[] = "."; $ignoreList[] = ".."; $ignoreList[] = ".htaccess";