Commit 2384d331 authored by Petr Škoda's avatar Petr Škoda
Browse files

MDL-42525 improve performance of plugin listing

parent 5386f0bb
......@@ -604,9 +604,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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment