mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[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
This commit is contained in:
parent
78de29b7ce
commit
2814021d3f
1 changed files with 2 additions and 1 deletions
|
@ -354,7 +354,8 @@ class phpbb_extension_manager
|
||||||
$available = array();
|
$available = array();
|
||||||
|
|
||||||
$iterator = new RecursiveIteratorIterator(
|
$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)
|
foreach ($iterator as $file_info)
|
||||||
{
|
{
|
||||||
if ($file_info->isFile() && $file_info->getFilename() == 'ext' . $this->phpEx)
|
if ($file_info->isFile() && $file_info->getFilename() == 'ext' . $this->phpEx)
|
||||||
|
|
Loading…
Add table
Reference in a new issue