mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-81127 filter: Support filters on course completion message
This commit is contained in:
parent
58e84e19b2
commit
6ed0b36d3b
1 changed files with 3 additions and 1 deletions
|
@ -179,8 +179,10 @@ class completion_completion extends data_object {
|
||||||
// Notify user.
|
// Notify user.
|
||||||
$course = get_course($data->course);
|
$course = get_course($data->course);
|
||||||
$messagesubject = get_string('coursecompleted', 'completion');
|
$messagesubject = get_string('coursecompleted', 'completion');
|
||||||
|
$options = new stdClass();
|
||||||
|
$options->context = context_course::instance($course->id);
|
||||||
$a = [
|
$a = [
|
||||||
'coursename' => get_course_display_name_for_list($course),
|
'coursename' => format_string(get_course_display_name_for_list($course), true, $options),
|
||||||
'courselink' => (string) new moodle_url('/course/view.php', array('id' => $course->id)),
|
'courselink' => (string) new moodle_url('/course/view.php', array('id' => $course->id)),
|
||||||
];
|
];
|
||||||
$messagebody = get_string('coursecompletedmessage', 'completion', $a);
|
$messagebody = get_string('coursecompletedmessage', 'completion', $a);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue