MDL-68279 admin: filter site fullname when sending test email.

This commit is contained in:
Paul Holden
2020-04-06 11:41:18 +01:00
parent 1d4fdb0d1c
commit 96e7f4f4fd
+2 -1
View File
@@ -46,7 +46,8 @@ if ($data) {
$emailuser->email = $data->recipient;
$emailuser->id = -99;
$subject = get_string('testoutgoingmailconf_subject', 'admin', $SITE->fullname);
$subject = get_string('testoutgoingmailconf_subject', 'admin',
format_string($SITE->fullname, true, ['context' => context_system::instance()]));
$messagetext = get_string('testoutgoingmailconf_message', 'admin');
// Manage Moodle debugging options.