From 5b1e53601870a52f220a6100e416e3853a3927e5 Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Mon, 7 Nov 2016 09:49:42 +0800 Subject: [PATCH] MailMessage must refresh widget paths #325 --- src/Core/Mailer/MailMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Mailer/MailMessage.php b/src/Core/Mailer/MailMessage.php index d7935e73..3d362fd5 100644 --- a/src/Core/Mailer/MailMessage.php +++ b/src/Core/Mailer/MailMessage.php @@ -252,7 +252,7 @@ public function attach($file, $name = null, $type = null) public function renderBody($layout, $data = [], $engine = null, $package = null, $prefix = 'mail') { $widget = WidgetHelper::createWidget($layout, $engine, $package); - $widget->setPathPrefix($prefix); + $widget->setPathPrefix($prefix)->registerPaths(true); $this->body($widget->render($data), true);