Merge branch 'MDL-77833-course-content-chng-notiification-multilang' of https://github.com/Amrita1991/moodle

This commit is contained in:
Sara Arjona 2023-04-13 16:20:00 +02:00
commit a9ff77113e

View File

@ -81,7 +81,7 @@ class content_notification_task extends adhoc_task {
// Get module names in the user's language.
$modnames = get_module_types_names();
$a = [
'coursename' => get_course_display_name_for_list($course),
'coursename' => format_string(get_course_display_name_for_list($course), true, ['context' => $modcontext]),
'courselink' => (new \moodle_url('/course/view.php', ['id' => $course->id]))->out(false),
'modulename' => format_string($cm->name, $modcontext->id),
'moduletypename' => $modnames[$cm->modname],