From f9bf9d7edfb41512090f914d9a9e50cadf4ed23b Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 10 Jun 2019 10:48:19 +0300 Subject: [PATCH] Plugins API - issue with plugins list fixed #145 #117 --- flextype/Plugins.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flextype/Plugins.php b/flextype/Plugins.php index 43e40bbc..dc4cd47b 100755 --- a/flextype/Plugins.php +++ b/flextype/Plugins.php @@ -57,7 +57,14 @@ class Plugins $this->flextype['registry']->set('plugins', []); // Get Plugins List - $plugins_list = Filesystem::listContents(PATH['plugins']); + $_plugins_list = Filesystem::listContents(PATH['plugins']); + $plugins_list = []; + + foreach($_plugins_list as $plugin) { + if ($plugin['type'] == 'dir') { + $plugins_list[] = $plugin; + } + } // Get plugins cache ID $plugins_cache_id = $this->getPluginsCacheID($plugins_list);