From f92ff1969867a04762ef991f6d39aaf24c23b18d Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 3 Sep 2019 14:37:39 +0300 Subject: [PATCH] refactor(core): refactor Plugins API #186 --- flextype/core/Plugins.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flextype/core/Plugins.php b/flextype/core/Plugins.php index 666a42fe..beb16b6d 100755 --- a/flextype/core/Plugins.php +++ b/flextype/core/Plugins.php @@ -67,10 +67,9 @@ class Plugins $this->flextype['registry']->set('plugins', []); // Get Plugins List - $_plugins_list = Filesystem::listContents(PATH['plugins']); $plugins_list = []; - foreach ($_plugins_list as $plugin) { + foreach Filesystem::listContents(PATH['plugins']) as $plugin) { if ($plugin['type'] !== 'dir') { continue; }