Bug #16419 » patch_em_dot_svn_cvs.patch

Administrator Admin, 2006-08-14 14:38

View differences:

t3lib/class.t3lib_div.php (working copy)
2611 2611
	 * @param	integer		$recursivityLevels: The number of levels to dig down...
2612 2612
	 * @return	array		An array with the found files/directories.
2613 2613
	 */
2614
	function getAllFilesAndFoldersInPath($fileArr,$path,$extList='',$regDirs=0,$recursivityLevels=99)	{
2614
	function getAllFilesAndFoldersInPath($fileArr,$path,$extList='',$regDirs=0,$recursivityLevels=99,$excludeDirs='')	{
2615 2615
		if ($regDirs)	$fileArr[] = $path;
2616 2616
		$fileArr = array_merge($fileArr, t3lib_div::getFilesInDir($path,$extList,1,1));
2617 2617

  
2618 2618
		$dirs = t3lib_div::get_dirs($path);
2619 2619
		if (is_array($dirs) && $recursivityLevels>0)	{
2620 2620
			foreach ($dirs as $subdirs)	{
2621
				if ((string)$subdirs!='')	{
2621
				if ((string)$subdirs!='' && !t3lib_div::inList($excludeDirs,strtolower($subdirs)) )	{
2622 2622
					$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$path.$subdirs.'/',$extList,$regDirs,$recursivityLevels-1);
2623 2623
				}
2624 2624
			}
typo3/mod/tools/em/class.em_index.php (working copy)
2266 2266
		if ($extPath)	{
2267 2267
			// Read files:
2268 2268
			$fileArr = array();
2269
			$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath);
2269
			$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath,'',0,99,'.svn,.cvs');
2270 2270

  
2271 2271
			// Start table:
2272 2272
			$lines = array();
......
3338 3338
	 * @see makeDetailedExtensionAnalysis()
3339 3339
	 */
3340 3340
	function getClassIndexLocallangFiles($absPath,$table_class_prefix,$extKey)	{
3341
		$filesInside = t3lib_div::removePrefixPathFromList(t3lib_div::getAllFilesAndFoldersInPath(array(),$absPath,'php,inc'),$absPath);
3341
		$filesInside = t3lib_div::removePrefixPathFromList
3342
			(t3lib_div::getAllFilesAndFoldersInPath(array(),$absPath,'php,inc',0,99,'.svn,.cvs'),$absPath);
3342 3343
		$out = array();
3343 3344

  
3344 3345
		foreach($filesInside as $fileName)	{
......
3883 3884

  
3884 3885
			// Get files for extension:
3885 3886
			$fileArr = array();
3886
			$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath);
3887
			$fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath,'',0,99,'.svn,.cvs');
3887 3888

  
3888 3889
			// Calculate the total size of those files:
3889 3890
			$totalSize = 0;
(5-5/9)