diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-04 15:07:19 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-09-04 15:07:41 +0200 |
commit | 6dbb64c4a2748467a61e5ed7821ac6526c86a093 (patch) | |
tree | 49e8ffa545292f5d40f9aabd1b229756452d6b98 /settings/Mailer/NewUserMailHelper.php | |
parent | 95ecab03568f2865b166a12156709d8271f7c9be (diff) | |
download | nextcloud-server-6dbb64c4a2748467a61e5ed7821ac6526c86a093.tar.gz nextcloud-server-6dbb64c4a2748467a61e5ed7821ac6526c86a093.zip |
Merge setMetaData into constructor
This ensures that the meta data is set in the beginning
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/Mailer/NewUserMailHelper.php')
-rw-r--r-- | settings/Mailer/NewUserMailHelper.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/settings/Mailer/NewUserMailHelper.php b/settings/Mailer/NewUserMailHelper.php index cee684d1cbf..9fc6a4a3c70 100644 --- a/settings/Mailer/NewUserMailHelper.php +++ b/settings/Mailer/NewUserMailHelper.php @@ -116,8 +116,7 @@ class NewUserMailHelper { $displayName = $user->getDisplayName(); $userId = $user->getUID(); - $emailTemplate = $this->mailer->createEMailTemplate(); - $emailTemplate->setMetaData('settings.Welcome', [ + $emailTemplate = $this->mailer->createEMailTemplate('settings.Welcome', [ 'link' => $link, 'displayname' => $displayName, 'userid' => $userId, |