Browse Source

Fix use of undeclared property.

mark_story 8 years ago
parent
commit
44fa5e2bf8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Core/Plugin.php

+ 2 - 1
src/Core/Plugin.php

@@ -244,12 +244,13 @@ class Plugin
             $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);