Merge branch 'w45_MDL-42525_m26_plugininfoperf' of https://github.com/skodak/moodle
[moodle.git] / lib / classes / plugin_manager.php
index 35bf4c1..b5ca099 100644 (file)
@@ -624,9 +624,9 @@ class core_plugin_manager {
      */
     public function get_plugin_info($component) {
         list($type, $name) = core_component::normalize_component($component);
-        $plugins = $this->get_plugins();
-        if (isset($plugins[$type][$name])) {
-            return $plugins[$type][$name];
+        $plugins = $this->get_plugins_of_type($type);
+        if (isset($plugins[$name])) {
+            return $plugins[$name];
         } else {
             return null;
         }