diff --git a/analytics/classes/manager.php b/analytics/classes/manager.php index 8e7c698584569..4cb2882e321e2 100644 --- a/analytics/classes/manager.php +++ b/analytics/classes/manager.php @@ -788,7 +788,7 @@ public static function load_default_models_for_component(string $componentname): if (preg_match('~^\\\\mod_([^\\\\]+)\\\\~', $indicator, $matches)) { if (!$allmodules) { // The first time, get all modules. - $allmodules = \core\plugin_manager::instance()->get_plugins_of_type('mod'); + $allmodules = \core\plugin_manager::instance()->get_present_plugins('mod'); } if (!array_key_exists($matches[1], $allmodules)) { // Module does not exist, so skip indicator.