aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Frèrejean <erikfrerejean@phpbb.com>2012-12-20 16:27:33 +0100
committerErik Frèrejean <erikfrerejean@phpbb.com>2012-12-23 16:20:37 +0100
commitcac39360669b10c7a27549ca36865249014e6d22 (patch)
tree1942bc3ce17b454d0de7faa844570b6566f907af
parent3701d83ecbd358c2ac78b74e314ddb74ce7d1812 (diff)
downloadforums-cac39360669b10c7a27549ca36865249014e6d22.tar
forums-cac39360669b10c7a27549ca36865249014e6d22.tar.gz
forums-cac39360669b10c7a27549ca36865249014e6d22.tar.bz2
forums-cac39360669b10c7a27549ca36865249014e6d22.tar.xz
forums-cac39360669b10c7a27549ca36865249014e6d22.zip
[ticket/11283] Extension manager follow symlinks.
All extensions are located in the `phpBB/ext` directory, however the `phpbb_extension_manager::all_available()` method only looks into actual directories and ignores symlinks. Add the `RecursiveDirectoryIterator::FOLLOW_SYMLINKS` flag to the `new RecursiveDirectoryIterator` call so that you can store extensions in a different location and use symlinks so that phpBB can recognise them. PHPBB3-11283
-rw-r--r--phpBB/includes/extension/manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php
index 67cc81e407..de6f364320 100644
--- a/phpBB/includes/extension/manager.php
+++ b/phpBB/includes/extension/manager.php
@@ -384,7 +384,7 @@ class phpbb_extension_manager
}
$iterator = new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($this->phpbb_root_path . 'ext/'),
+ new RecursiveDirectoryIterator($this->phpbb_root_path . 'ext/', FilesystemIterator::NEW_CURRENT_AND_KEY | FilesystemIterator::FOLLOW_SYMLINKS),
RecursiveIteratorIterator::SELF_FIRST);
foreach ($iterator as $file_info)
{