From b58928b4c1a21f0c2f7db6a8ff670645e7c867e0 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 6 Jun 2017 10:01:53 -0500 Subject: Also use IMailer interface to generate the email template Signed-off-by: Morris Jobke --- settings/Mailer/NewUserMailHelper.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'settings') diff --git a/settings/Mailer/NewUserMailHelper.php b/settings/Mailer/NewUserMailHelper.php index 911952794fd..cd6d6ee67f5 100644 --- a/settings/Mailer/NewUserMailHelper.php +++ b/settings/Mailer/NewUserMailHelper.php @@ -115,11 +115,7 @@ class NewUserMailHelper { $link = $this->urlGenerator->getAbsoluteURL('/'); } - $emailTemplate = new EMailTemplate( - $this->themingDefaults, - $this->urlGenerator, - $this->l10n - ); + $emailTemplate = $this->mailer->createEMailTemplate(); $emailTemplate->addHeader(); $displayName = $user->getDisplayName(); $userName = $user->getUID(); -- cgit v1.2.3