aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-22 23:42:49 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-22 23:42:49 +0200
commit488904d0bfb9477950d1f555c3d0041fbb298201 (patch)
treec302c914ec0a51737e65633736c68885090bae59 /phpBB
parenta2cd9c2464b2f83ec005831955d2f027c9c0210a (diff)
downloadforums-488904d0bfb9477950d1f555c3d0041fbb298201.tar
forums-488904d0bfb9477950d1f555c3d0041fbb298201.tar.gz
forums-488904d0bfb9477950d1f555c3d0041fbb298201.tar.bz2
forums-488904d0bfb9477950d1f555c3d0041fbb298201.tar.xz
forums-488904d0bfb9477950d1f555c3d0041fbb298201.zip
[ticket/12586] Use dot filter when trying to find available extensions
PHPBB3-12586
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/extension/manager.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/phpbb/extension/manager.php b/phpBB/phpbb/extension/manager.php
index b22fbf07a6..a18a30b7ff 100644
--- a/phpBB/phpbb/extension/manager.php
+++ b/phpBB/phpbb/extension/manager.php
@@ -409,8 +409,12 @@ class manager
}
$iterator = new \RecursiveIteratorIterator(
- new \RecursiveDirectoryIterator($this->phpbb_root_path . 'ext/', \FilesystemIterator::NEW_CURRENT_AND_KEY | \FilesystemIterator::FOLLOW_SYMLINKS),
- \RecursiveIteratorIterator::SELF_FIRST);
+ new \phpbb\recursive_dot_prefix_filter_iterator(
+ new \RecursiveDirectoryIterator($this->phpbb_root_path . 'ext/', \FilesystemIterator::NEW_CURRENT_AND_KEY | \FilesystemIterator::FOLLOW_SYMLINKS)
+ ),
+ \RecursiveIteratorIterator::SELF_FIRST
+ );
+
foreach ($iterator as $file_info)
{
if ($file_info->isFile() && $file_info->getFilename() == 'ext.' . $this->php_ext)