diff options
author | Erik Frèrejean <erikfrerejean@phpbb.com> | 2012-12-20 16:27:33 +0100 |
---|---|---|
committer | Erik Frèrejean <erikfrerejean@phpbb.com> | 2012-12-23 16:20:37 +0100 |
commit | cac39360669b10c7a27549ca36865249014e6d22 (patch) | |
tree | 1942bc3ce17b454d0de7faa844570b6566f907af | |
parent | 3701d83ecbd358c2ac78b74e314ddb74ce7d1812 (diff) | |
download | forums-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.php | 2 |
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) { |