Feature #22968 ยป t3lib_div_get_dirs_exclusion.patch
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;
|
||
}
|
||
}
|