Error messages are longer surpressed
[core.git] / inc / loader / class_ClassLoader.php
index 134b8c10d4af9d7a533065d105da41c4f92c09c6..dbba1ff1139e9ad37d73e6decba8faa95a5c63e2 100644 (file)
@@ -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";