$info) { if (preg_match($include_dir_regexp, $info -> getFilename())) { $include_paths[] = $file; } } // This loop used only when sorting includes if (isset($include_dir_sort) && $include_dir_sort) { asort($include_paths); } foreach ($include_paths as $file) { // do not use print_debug, which not included for definitions! //if (OBS_DEBUG > 1) { echo('Including sorted: ' . $file . PHP_EOL); } include($file); } unset($include_dir_regexp, $include_dir_depth, $include_dir, $include_paths, $file); // EOF