Skip to content

Commit

Permalink
Fixed incorrect naming of mustache variable (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Dec 29, 2023
1 parent 0b13130 commit ff3dbb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/output/email_certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ public function export_for_template(\renderer_base $renderer) {
$data->emailbody = get_string('emailstudentbody', 'customcert', $info);
$data->emailbodyplaintext = get_string('emailstudentbodyplaintext', 'customcert', $info);
$data->emailcertificatelink = new \moodle_url('/mod/customcert/view.php', array('id' => $this->cmid));
$data->emailcertificatetext = get_string('emailstudentcertificatelinktext', 'customcert');
$data->emailcertificatelinktext = get_string('emailstudentcertificatelinktext', 'customcert');
} else {
$data->emailgreeting = get_string('emailnonstudentgreeting', 'customcert');
$data->emailbody = get_string('emailnonstudentbody', 'customcert', $info);
$data->emailbodyplaintext = get_string('emailnonstudentbodyplaintext', 'customcert', $info);
$data->emailcertificatelink = new \moodle_url('/mod/customcert/view.php', array('id' => $this->cmid));
$data->emailcertificatetext = get_string('emailnonstudentcertificatelinktext', 'customcert');
$data->emailcertificatelinktext = get_string('emailnonstudentcertificatelinktext', 'customcert');
}

return $data;
Expand Down

0 comments on commit ff3dbb8

Please sign in to comment.