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 /lib/private/Share20 | |
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 'lib/private/Share20')
-rw-r--r-- | lib/private/Share20/Manager.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 46e3bd75c5c..886a319b1e7 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -696,8 +696,7 @@ class Manager implements IManager { $message = $this->mailer->createMessage(); - $emailTemplate = $this->mailer->createEMailTemplate(); - $emailTemplate->setMetaData('files_sharing.RecipientNotification', [ + $emailTemplate = $this->mailer->createEMailTemplate('files_sharing.RecipientNotification', [ 'filename' => $filename, 'link' => $link, 'initiator' => $initiatorDisplayName, |