diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 33db295d06f..b7cdece51a4 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -705,7 +705,7 @@ $string['emailresetconfirmsent'] = 'An email has been sent to your address at From = $from->email; $fromdetails = new stdClass(); $fromdetails->name = fullname($from); - $fromdetails->url = $CFG->wwwroot; + $fromdetails->url = preg_replace('#^https?://#', '', $CFG->wwwroot); + $fromdetails->siteshortname = format_string($SITE->shortname); $fromstring = $fromdetails->name; if ($CFG->emailfromvia == EMAIL_VIA_ALWAYS) { $fromstring = get_string('emailvia', 'core', $fromdetails); @@ -5809,7 +5810,8 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml = '', $mail->From = $noreplyaddress; $fromdetails = new stdClass(); $fromdetails->name = fullname($from); - $fromdetails->url = $CFG->wwwroot; + $fromdetails->url = preg_replace('#^https?://#', '', $CFG->wwwroot); + $fromdetails->siteshortname = format_string($SITE->shortname); $fromstring = $fromdetails->name; if ($CFG->emailfromvia != EMAIL_VIA_NEVER) { $fromstring = get_string('emailvia', 'core', $fromdetails);