Merge branch 'MDL-42263-main' of https://github.com/Jayce0808/moodle into main
This commit is contained in:
@@ -6608,6 +6608,7 @@ class assign {
|
||||
global $USER;
|
||||
$userid = core_user::is_real_user($userfrom->id) ? $userfrom->id : $USER->id;
|
||||
$uniqueid = $this->get_uniqueid_for_user($userid);
|
||||
$oldforcelang = force_current_language($userto->lang);
|
||||
self::send_assignment_notification($userfrom,
|
||||
$userto,
|
||||
$messagetype,
|
||||
@@ -6621,6 +6622,7 @@ class assign {
|
||||
$this->is_blind_marking(),
|
||||
$uniqueid,
|
||||
$extrainfo);
|
||||
force_current_language($oldforcelang);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -6669,7 +6671,9 @@ class assign {
|
||||
$user = $USER;
|
||||
}
|
||||
// Prepare extra data for submission receipt notification.
|
||||
$oldforcelang = force_current_language($user->lang);
|
||||
$extrainfo = $this->get_submission_summaries_for_messages($submission);
|
||||
force_current_language($oldforcelang);
|
||||
if ($submission->userid == $USER->id) {
|
||||
$this->send_notification(core_user::get_noreply_user(),
|
||||
$user,
|
||||
|
||||
Reference in New Issue
Block a user