mirror of
https://github.com/flextype/flextype.git
synced 2025-08-11 15:44:49 +02:00
Flextype Core: Plugins - code fixes according Scrutinizer Tests.
- The variable $plugin_config does not seem to be defined for all execution paths leading up to this point. - The variable $plugin_settings does not seem to be defined for all execution paths leading up to this point.
This commit is contained in:
@@ -259,6 +259,11 @@ class Plugins
|
||||
// If Plugins List isnt empty
|
||||
if (is_array($plugins_list) && count($plugins_list) > 0) {
|
||||
|
||||
// Init plugin configs
|
||||
$_plugins_config = [];
|
||||
$plugin_settings = [];
|
||||
$plugin_config = [];
|
||||
|
||||
// Go through...
|
||||
foreach ($plugins_list as $plugin) {
|
||||
if (Filesystem::has($_plugin_settings = PATH['plugins'] . '/' . $plugin['dirname'] . '/settings.yaml')) {
|
||||
|
Reference in New Issue
Block a user