diff --git a/src/Core/Plugin.php b/src/Core/Plugin.php index 18474279c14..d9965ba561b 100644 --- a/src/Core/Plugin.php +++ b/src/Core/Plugin.php @@ -244,12 +244,13 @@ public static function loadAll(array $options = []) $plugins = array_unique($plugins); } + $collection = static::getCollection(); foreach ($plugins as $p) { $opts = isset($options[$p]) ? $options[$p] : null; if ($opts === null && isset($options[0])) { $opts = $options[0]; } - if (isset(static::$_plugins[$p])) { + if ($collection->has($p)) { continue; } static::load($p, (array)$opts);