Skip to content

Commit

Permalink
Merge branch 'MDL-81127-main' of https://github.com/izendegi/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov committed Mar 12, 2024
2 parents 0f5ebdd + 6868ee3 commit 2202ed0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion completion/completion_completion.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ public function mark_complete($timecomplete = null) {
// Notify user.
$course = get_course($data->course);
$messagesubject = get_string('coursecompleted', 'completion');
$options = new stdClass();
$options->context = context_course::instance($course->id);
$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)),
];
$messagebody = get_string('coursecompletedmessage', 'completion', $a);
Expand Down

0 comments on commit 2202ed0

Please sign in to comment.