Skip to content

Commit

Permalink
MailMessage must refresh widget paths #325
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Nov 7, 2016
1 parent 7b308ee commit 5b1e536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Mailer/MailMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5b1e536

Please sign in to comment.