summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-04 15:07:19 +0200
committerJoas Schilling <coding@schilljs.com>2017-09-04 15:07:41 +0200
commit6dbb64c4a2748467a61e5ed7821ac6526c86a093 (patch)
tree49e8ffa545292f5d40f9aabd1b229756452d6b98 /apps
parent95ecab03568f2865b166a12156709d8271f7c9be (diff)
downloadnextcloud-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 'apps')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index e5ae64ba120..9a0678f5fe7 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -384,8 +384,7 @@ class ShareByMailProvider implements IShareProvider {
$message = $this->mailer->createMessage();
- $emailTemplate = $this->mailer->createEMailTemplate();
- $emailTemplate->setMetaData('sharebymail.RecipientNotification', [
+ $emailTemplate = $this->mailer->createEMailTemplate('sharebymail.RecipientNotification', [
'filename' => $filename,
'link' => $link,
'initiator' => $initiatorDisplayName,
@@ -462,8 +461,7 @@ class ShareByMailProvider implements IShareProvider {
$message = $this->mailer->createMessage();
- $emailTemplate = $this->mailer->createEMailTemplate();
- $emailTemplate->setMetaData('sharebymail.RecipientPasswordNotification', [
+ $emailTemplate = $this->mailer->createEMailTemplate('sharebymail.RecipientPasswordNotification', [
'filename' => $filename,
'password' => $password,
'initiator' => $initiatorDisplayName,
@@ -530,8 +528,7 @@ class ShareByMailProvider implements IShareProvider {
$bodyPart = $this->l->t("You just shared »%s« with %s. The share was already send to the recipient. Due to the security policies defined by the administrator of %s each share needs to be protected by password and it is not allowed to send the password directly to the recipient. Therefore you need to forward the password manually to the recipient.", [$filename, $shareWith, $this->defaults->getName()]);
$message = $this->mailer->createMessage();
- $emailTemplate = $this->mailer->createEMailTemplate();
- $emailTemplate->setMetaData('sharebymail.OwnerPasswordNotification', [
+ $emailTemplate = $this->mailer->createEMailTemplate('sharebymail.OwnerPasswordNotification', [
'filename' => $filename,
'password' => $password,
'initiator' => $initiatorDisplayName,