diff --git a/lib/pluginlib.php b/lib/pluginlib.php index fcca051e05e..1cde01d6854 100644 --- a/lib/pluginlib.php +++ b/lib/pluginlib.php @@ -148,7 +148,7 @@ class plugin_manager { if ($disablecache or is_null($this->subpluginsinfo)) { $this->subpluginsinfo = array(); foreach (array('mod', 'editor') as $type) { - $owners = get_plugin_list('type'); + $owners = get_plugin_list($type); foreach ($owners as $component => $ownerdir) { $componentsubplugins = array(); if (file_exists($ownerdir . '/db/subplugins.php')) {