diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-15 11:01:21 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-10-18 15:12:03 +0200 |
commit | 3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9 (patch) | |
tree | f79efab1f9506a452e54fd32e201234410969b1b /lib | |
parent | c9af36a9ab05e808df526a2054c30364ee02241c (diff) | |
download | nextcloud-server-3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9.tar.gz nextcloud-server-3119fd41ceebbdab33c4dd86ce0b60b4dc9010e9.zip |
Set the data from the template
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index dd2a110daeb..42f2170122e 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -750,9 +750,7 @@ class Manager implements IManager { $emailTemplate->addFooter(); } - $message->setSubject($emailTemplate->renderSubject()); - $message->setPlainBody($emailTemplate->renderText()); - $message->setHtmlBody($emailTemplate->renderHtml()); + $message->useTemplate($emailTemplate); $this->mailer->send($message); } |