mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/10323] make finder work with PHP 5.2
PHPBB3-10323
This commit is contained in:
parent
b7c4fb38de
commit
658db65cb4
1 changed files with 6 additions and 1 deletions
|
@ -377,9 +377,14 @@ class phpbb_extension_finder
|
|||
}
|
||||
$directory_pattern = '#' . $directory_pattern . '#';
|
||||
|
||||
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::SELF_FIRST);
|
||||
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
|
||||
foreach ($iterator as $file_info)
|
||||
{
|
||||
if (in_array($file_info, array('.', '..')))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($file_info->isDir() == $is_dir)
|
||||
{
|
||||
if ($is_dir)
|
||||
|
|
Loading…
Add table
Reference in a new issue