Add userfullname variable for email subject (#316)

This commit is contained in:
Arnaud Trouvé 2019-12-13 15:46:49 +01:00 committed by Mark Nelson
parent b89010ffd1
commit 080e53d13a

View file

@ -160,6 +160,7 @@ 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) {
$userfullname = fullname($user); $userfullname = fullname($user);
$info->userfullname = $userfullname;
// Now, get the PDF. // Now, get the PDF.
$template = new \stdClass(); $template = new \stdClass();