summaryrefslogtreecommitdiffstats
path: root/core/Controller
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 /core/Controller
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 'core/Controller')
-rw-r--r--core/Controller/LostController.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php
index 45423b41e8b..4c59b0a1c00 100644
--- a/core/Controller/LostController.php
+++ b/core/Controller/LostController.php
@@ -305,8 +305,7 @@ class LostController extends Controller {
$link = $this->urlGenerator->linkToRouteAbsolute('core.lost.resetform', array('userId' => $user->getUID(), 'token' => $token));
- $emailTemplate = $this->mailer->createEMailTemplate();
- $emailTemplate->setMetaData('core.ResetPassword', [
+ $emailTemplate = $this->mailer->createEMailTemplate('core.ResetPassword', [
'link' => $link,
]);