Commit 4b7752ac authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1728472: string fix - text when sending email

fix text when sending email to user after adding a new
email address

behatnotneeded

Change-Id: Ibd20de0c7a97df4845e55e944559d0b5f43a81e2
parent 99263861
......@@ -366,7 +366,8 @@ function profileform_submit(Pieform $form, $values) {
),
null,
get_string('newemailalert_subject', 'artefact.internal', $sitename),
get_string('newemailalert_body', 'artefact.internal', $USER->get('firstname'), $sitename, $emails, $sitename, get_config('wwwroot'))
get_string('newemailalert_body_text', 'artefact.internal', $USER->get('firstname'), $sitename, $emails, $sitename, get_config('wwwroot')),
get_string('newemailalert_body_html', 'artefact.internal', hsc($USER->get('firstname')), hsc($sitename), hsc($emails), hsc($sitename), get_config('wwwroot'))
);
}
catch (EmailException $e) {
......
......@@ -100,14 +100,27 @@ If this email belongs to you, but you have not requested adding it to your %s ac
%s
EOF;
$string['newemailalert_subject'] = 'New email address added to your %s account';
$string['newemailalert_body'] = <<<EOF
$string['newemailalert_body_text'] = <<<EOF
Hello %s,
You have added the email addresses to your user account in %s:
%s
If you have not requested this change in your %s account, please <a href="%scontact.php">contact the site administrator</a>.
If you have not requested this change in your %s account, please contact the site administrator
%scontact.php
EOF;
$string['newemailalert_body_html'] = <<<EOF
<p>Hello %s,</p>
<p>You have added the email addresses to your user account in %s:</p>
<p>%s</p>
<p>If you have not requested this change in your %s account, please <a href="%scontact.php">contact the site administrator</a></p>
EOF;
$string['validationemailwillbesent'] = 'A validation email will be sent when you save your profile.';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment