From 1ae415f291bda67ae3d8a0698343e6d0a9cf9700 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 2 Jun 2016 23:07:30 +0200 Subject: [PATCH] Pass default style to template in RecipientAwareTextMimePart --- .../system/email/mime/RecipientAwareTextMimePart.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/email/mime/RecipientAwareTextMimePart.class.php b/wcfsetup/install/files/lib/system/email/mime/RecipientAwareTextMimePart.class.php index 405a28b0fa..b6455ecf4a 100644 --- a/wcfsetup/install/files/lib/system/email/mime/RecipientAwareTextMimePart.class.php +++ b/wcfsetup/install/files/lib/system/email/mime/RecipientAwareTextMimePart.class.php @@ -1,5 +1,7 @@ getData(); + return [ 'content' => $this->content, 'mimeType' => $this->mimeType, - 'mailbox' => $this->mailbox + 'mailbox' => $this->mailbox, + 'style' => new ActiveStyle($styleCache['styles'][$styleCache['default']]) ]; } } -- 2.20.1