From 8aa23f2646afed715e0ce731ce13e45cce37fd73 Mon Sep 17 00:00:00 2001 From: Ciki Date: Sat, 6 May 2023 19:05:52 +0200 Subject: [PATCH] fix accessing deprecated Mail Message properties (#42) * fix accessing deprecated property * fix accessing deprecated property --- src/MailPanel.body.latte | 4 ++-- src/MailPanel.latte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MailPanel.body.latte b/src/MailPanel.body.latte index 86e609e..c1efc16 100644 --- a/src/MailPanel.body.latte +++ b/src/MailPanel.body.latte @@ -1,6 +1,6 @@ {* Little magic here. Create iframe and then render message into it (needed because HTML messages) *} -{if $message->htmlBody !== NULL} - {$message->htmlBody|noescape} +{if $message->getHtmlBody() !== NULL} + {$message->getHtmlBody()|noescape} {else} diff --git a/src/MailPanel.latte b/src/MailPanel.latte index e277ee9..e39d82f 100644 --- a/src/MailPanel.latte +++ b/src/MailPanel.latte @@ -75,7 +75,7 @@ Source Delete -
{$message->subject}
+
{$message->getSubject()}