MDL-77833 course: content change notification multilang processing
changing context parameter
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user