Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[ticket/10323] make finder work with PHP 5.2

PHPBB3-10323
  • Loading branch information...
commit 658db65cb477b790f217e0b8c6d202fbb1a8836c 1 parent b7c4fb3
Igor Wiedler authored November 19, 2011

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  phpBB/includes/extension/finder.php
7  phpBB/includes/extension/finder.php
@@ -377,9 +377,14 @@ public function find($cache = true, $is_dir = false)
377 377
 			}
378 378
 			$directory_pattern = '#' . $directory_pattern . '#';
379 379
 
380  
-			$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::SELF_FIRST);
  380
+			$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
381 381
 			foreach ($iterator as $file_info)
382 382
 			{
  383
+				if (in_array($file_info, array('.', '..')))
  384
+				{
  385
+					continue;
  386
+				}
  387
+
383 388
 				if ($file_info->isDir() == $is_dir)
384 389
 				{
385 390
 					if ($is_dir)

0 notes on commit 658db65

Please sign in to comment.
Something went wrong with that request. Please try again.