diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-11-19 22:04:43 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-11-19 22:04:43 +0100 |
commit | 658db65cb477b790f217e0b8c6d202fbb1a8836c (patch) | |
tree | f5de581679b7c2fc39d2589d4da7dbd2df5076ac /phpBB | |
parent | b7c4fb38de526eb446de20c0b8e54d7cf9108834 (diff) | |
download | forums-658db65cb477b790f217e0b8c6d202fbb1a8836c.tar forums-658db65cb477b790f217e0b8c6d202fbb1a8836c.tar.gz forums-658db65cb477b790f217e0b8c6d202fbb1a8836c.tar.bz2 forums-658db65cb477b790f217e0b8c6d202fbb1a8836c.tar.xz forums-658db65cb477b790f217e0b8c6d202fbb1a8836c.zip |
[ticket/10323] make finder work with PHP 5.2
PHPBB3-10323
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/extension/finder.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/extension/finder.php b/phpBB/includes/extension/finder.php index a1e6b2b347..11eb682f46 100644 --- a/phpBB/includes/extension/finder.php +++ b/phpBB/includes/extension/finder.php @@ -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) |