Use 'cron_setup_user' when sending emails (#414)
This commit is contained in:
parent
11225ff1fa
commit
0de67035a3
2 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@ Note - All hash comments refer to the issue number. Eg. #169 refers to https://g
|
||||||
- Users being able to view the certificate before the required time set (#403).
|
- Users being able to view the certificate before the required time set (#403).
|
||||||
- Fixed the issue with displaying PDF when debugging is ON (#420).
|
- Fixed the issue with displaying PDF when debugging is ON (#420).
|
||||||
- Using incorrect context when sending emails (#402).
|
- Using incorrect context when sending emails (#402).
|
||||||
|
- Use `cron_setup_user` when sending emails (#414).
|
||||||
|
|
||||||
## [3.8.5] - 2020-11-26
|
## [3.8.5] - 2020-11-26
|
||||||
|
|
||||||
|
|
|
@ -181,6 +181,9 @@ class email_certificate_task extends \core\task\scheduled_task {
|
||||||
|
|
||||||
// Now, email the people we need to.
|
// Now, email the people we need to.
|
||||||
foreach ($issuedusers as $user) {
|
foreach ($issuedusers as $user) {
|
||||||
|
// Set up the user.
|
||||||
|
cron_setup_user($user);
|
||||||
|
|
||||||
$userfullname = fullname($user);
|
$userfullname = fullname($user);
|
||||||
$info->userfullname = $userfullname;
|
$info->userfullname = $userfullname;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue