Project

General

Profile

Feature #22968 ยป t3lib_div_get_dirs_exclusion.patch

Administrator Admin, 2010-06-23 11:21

View differences:

t3lib/class.t3lib_div.php (Arbeitskopie)
$dir = scandir($path);
$dirs = array();
foreach ($dir as $entry) {
if (is_dir($path . '/' . $entry) && $entry != '..' && $entry != '.') {
if (is_dir($path . '/' . $entry) && $entry != '..' && $entry != '.' && (!strlen($GLOBALS['TYPO3_CONF_VARS']['SYS']['directoryExclusion']) || !preg_match('/^'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['directoryExclusion'].'$/',$entry))) {
$dirs[] = $entry;
}
}
    (1-1/1)