summaryrefslogtreecommitdiffstats
path: root/settings/Controller/MailSettingsController.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/Controller/MailSettingsController.php')
-rw-r--r--settings/Controller/MailSettingsController.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/settings/Controller/MailSettingsController.php b/settings/Controller/MailSettingsController.php
index 44cece1d658..974a95618ad 100644
--- a/settings/Controller/MailSettingsController.php
+++ b/settings/Controller/MailSettingsController.php
@@ -147,9 +147,7 @@ class MailSettingsController extends Controller {
try {
$displayName = $this->userSession->getUser()->getDisplayName();
- $template = $this->mailer->createEMailTemplate();
-
- $template->setMetaData('settings.TestEmail', [
+ $template = $this->mailer->createEMailTemplate('settings.TestEmail', [
'displayname' => $displayName,
]);