Bug #16419 » patch_em_dot_svn_cvs-v2.patch
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
* @param integer $recursivityLevels: The number of levels to dig down...
|
||
* @return array An array with the found files/directories.
|
||
*/
|
||
function getAllFilesAndFoldersInPath($fileArr,$path,$extList='',$regDirs=0,$recursivityLevels=99) {
|
||
function getAllFilesAndFoldersInPath($fileArr,$path,$extList='',$regDirs=0,$recursivityLevels=99,$excludeDirs='') {
|
||
if ($regDirs) $fileArr[] = $path;
|
||
$fileArr = array_merge($fileArr, t3lib_div::getFilesInDir($path,$extList,1,1));
|
||
$dirs = t3lib_div::get_dirs($path);
|
||
if (is_array($dirs) && $recursivityLevels>0) {
|
||
foreach ($dirs as $subdirs) {
|
||
if ((string)$subdirs!='') {
|
||
if ((string)$subdirs!='' && !t3lib_div::inList($excludeDirs,strtolower($subdirs)) ) {
|
||
$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$path.$subdirs.'/',$extList,$regDirs,$recursivityLevels-1);
|
||
$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$path.$subdirs.'/',$extList,$regDirs,$recursivityLevels-1,$excludeDirs);
|
||
}
|
||
}
|
||
}
|
typo3/mod/tools/em/class.em_index.php (working copy) | ||
---|---|---|
if ($extPath) {
|
||
// Read files:
|
||
$fileArr = array();
|
||
$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath);
|
||
$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath,'',0,99,'.svn,.cvs');
|
||
// Start table:
|
||
$lines = array();
|
||
... | ... | |
* @see makeDetailedExtensionAnalysis()
|
||
*/
|
||
function getClassIndexLocallangFiles($absPath,$table_class_prefix,$extKey) {
|
||
$filesInside = t3lib_div::removePrefixPathFromList(t3lib_div::getAllFilesAndFoldersInPath(array(),$absPath,'php,inc'),$absPath);
|
||
$filesInside = t3lib_div::removePrefixPathFromList
|
||
(t3lib_div::getAllFilesAndFoldersInPath(array(),$absPath,'php,inc',0,99,'.svn,.cvs'),$absPath);
|
||
$out = array();
|
||
foreach($filesInside as $fileName) {
|
||
... | ... | |
// Get files for extension:
|
||
$fileArr = array();
|
||
$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath);
|
||
$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath,'',0,99,'.svn,.cvs');
|
||
// Calculate the total size of those files:
|
||
$totalSize = 0;
|