diff options
author | Joas Schilling <coding@schilljs.com> | 2017-09-15 10:59:11 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-10-18 15:12:03 +0200 |
commit | 8b37fe7f6534ad16bd9a357036e95e748e2068e3 (patch) | |
tree | c7a11a26232a0e117d0b2b3c95a2d79b7985967b /core | |
parent | f109c1a10c9f5acf0d5d3e4f864e3702f99db937 (diff) | |
download | nextcloud-server-8b37fe7f6534ad16bd9a357036e95e748e2068e3.tar.gz nextcloud-server-8b37fe7f6534ad16bd9a357036e95e748e2068e3.zip |
Set the subject with the email template to allow theming
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/LostController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php index 4c59b0a1c00..f4400b0f20b 100644 --- a/core/Controller/LostController.php +++ b/core/Controller/LostController.php @@ -309,6 +309,7 @@ class LostController extends Controller { 'link' => $link, ]); + $emailTemplate->setSubject($this->l10n->t('%s password reset', [$this->defaults->getName()])); $emailTemplate->addHeader(); $emailTemplate->addHeading($this->l10n->t('Password reset')); @@ -327,7 +328,7 @@ class LostController extends Controller { try { $message = $this->mailer->createMessage(); $message->setTo([$email => $user->getUID()]); - $message->setSubject($this->l10n->t('%s password reset', [$this->defaults->getName()])); + $message->setSubject($emailTemplate->renderSubject()); $message->setPlainBody($emailTemplate->renderText()); $message->setHtmlBody($emailTemplate->renderHtml()); $message->setFrom([$this->from => $this->defaults->getName()]); |