diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-02-11 15:08:05 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-02-11 15:08:05 -0500 |
commit | 2814021d3ff3be4d57166ac8da224807cabb5367 (patch) | |
tree | 46481e8e0484a665d60fcb49ddab3aa2402606c8 /phpBB/includes/extension | |
parent | 78de29b7ce5b8c1c34749bb68813840f7e6c4b7b (diff) | |
download | forums-2814021d3ff3be4d57166ac8da224807cabb5367.tar forums-2814021d3ff3be4d57166ac8da224807cabb5367.tar.gz forums-2814021d3ff3be4d57166ac8da224807cabb5367.tar.bz2 forums-2814021d3ff3be4d57166ac8da224807cabb5367.tar.xz forums-2814021d3ff3be4d57166ac8da224807cabb5367.zip |
[ticket/10614] Unbreak all_available on extension manager.
By default RecursiveIteratorIterator skips all directories.
This results in extension manager not finding any extensions.
Add RecursiveIteratorIterator::SELF_FIRST to correct this.
PHPBB3-10614
Diffstat (limited to 'phpBB/includes/extension')
-rw-r--r-- | phpBB/includes/extension/manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php index 56092410f2..c38f0df32e 100644 --- a/phpBB/includes/extension/manager.php +++ b/phpBB/includes/extension/manager.php @@ -354,7 +354,8 @@ class phpbb_extension_manager $available = array(); $iterator = new RecursiveIteratorIterator( - new RecursiveDirectoryIterator($this->phpbb_root_path . 'ext/')); + new RecursiveDirectoryIterator($this->phpbb_root_path . 'ext/'), + RecursiveIteratorIterator::SELF_FIRST); foreach ($iterator as $file_info) { if ($file_info->isFile() && $file_info->getFilename() == 'ext' . $this->phpEx) |