Skip to content

Commit

Permalink
CONTRIB-9345 fix deprecated functions in cron
Browse files Browse the repository at this point in the history
  • Loading branch information
bostelm committed Aug 25, 2023
1 parent 69ed7a2 commit 62dc7b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/task/send_reminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ public function execute() {

// Send reminder to all students in the slot.
foreach ($slotm->get_appointments() as $appointment) {
$student = $DB->get_record('user', array('id' => $appointment->studentid));
cron_setup_user($student, $course);
$student = \core_user::get_user($appointment->studentid);
\core\cron::setup_user($student, $course);
\scheduler_messenger::send_slot_notification($slotm,
'reminder', 'reminder', $teacher, $student, $teacher, $student, $course);
}
}
cron_setup_user();
\core\cron::setup_user();
}
}

0 comments on commit 62dc7b2

Please sign in to comment.