Skip to content

Commit

Permalink
Fix call to render method since it was renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-mg89 committed Jun 14, 2021
1 parent e1fc391 commit 5d93afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Goteo/Controller/MailController.php
Expand Up @@ -63,6 +63,7 @@ public function indexAction ($token, Request $request) {

}
// Content still in database?
/** @var Mail $mail */
if ($mail = Mail::get($mail_id)) {
if ($mail->massive) {
if ($user = User::getByEmail($email)) {
Expand All @@ -77,7 +78,7 @@ public function indexAction ($token, Request $request) {
if(empty($mail->template)) {
$mail->content = '<pre>' . $mail->content . '</pre>';
}
return new Response($mail->render(false, [], $track));
return new Response($mail->renderEmailTemplate(false, [], $track));
}

// TODO, check if exists as file-archived
Expand Down

0 comments on commit 5d93afa

Please sign in to comment.