From 7dd0d761559386825cde851a472df7231b86d92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Ekstr=C3=B6m=20Svensson?= Date: Sat, 24 Oct 2015 21:08:51 +0200 Subject: [PATCH] Allow plugins to be symlinks This change makes sure that plugins can be loaded even though they are symlinks. The change makes it easier to have custom schemes to handle version control with zero-downtime deployment. --- modules/system/classes/PluginManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/system/classes/PluginManager.php b/modules/system/classes/PluginManager.php index d916cc542..d538b0ace 100644 --- a/modules/system/classes/PluginManager.php +++ b/modules/system/classes/PluginManager.php @@ -360,7 +360,9 @@ class PluginManager return $plugins; } - $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dirPath)); + $it = new RecursiveIteratorIterator( + new RecursiveDirectoryIterator($dirPath, RecursiveDirectoryIterator::FOLLOW_SYMLINKS) + ); $it->setMaxDepth(2); $it->rewind();