From dba761ac70061a0af3cf25d1c602d6731a8f673b Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 23 Sep 2024 09:08:09 +0200 Subject: [PATCH] fix: use formatted course module name in activity script Updated the rendering logic to use the formatted course module name instead of the plain name when generating the activity script. This ensures consistency in presentation and improves readability. Fixes issues with name formatting in displayed activities. --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.php b/lib.php index e5af704..0a9fbf1 100644 --- a/lib.php +++ b/lib.php @@ -53,7 +53,7 @@ function mod_exp360_cm_info_dynamic(cm_info $cm) $renderer = $PAGE->get_renderer('mod_exp360'); $modals = $renderer->render_modals(); - $script = $renderer->render_activity($cm->id, $cm->name); + $script = $renderer->render_activity($cm->id, $cm->get_formatted_name()); $cm->set_no_view_link(); $cm->set_content($modals . $script);