summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-06-06 10:01:53 -0500
committerMorris Jobke <hey@morrisjobke.de>2017-06-06 10:47:48 -0500
commitb58928b4c1a21f0c2f7db6a8ff670645e7c867e0 (patch)
treedff8214b5d2ca596bf883eb66ceae43e1ba2418d /settings
parent15314b6f5b7914a72ca1b424a13ecd82163a8f14 (diff)
downloadnextcloud-server-b58928b4c1a21f0c2f7db6a8ff670645e7c867e0.tar.gz
nextcloud-server-b58928b4c1a21f0c2f7db6a8ff670645e7c867e0.zip
Also use IMailer interface to generate the email template
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings')
-rw-r--r--settings/Mailer/NewUserMailHelper.php6
1 files changed, 1 insertions, 5 deletions
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();