Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv authored and Malebestia committed Sep 4, 2023
1 parent f10687b commit 3c80d41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Actions/ApplyModelAttrsToThemeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function execute(Model $model, string $name, array $extra = []): NotifyTh
$data = $model->toArray();

$data = array_merge($data, $extra);

$html = $theme->body_html;
foreach ($data as $k => $v) {
if (\is_string($v)) {
Expand All @@ -48,7 +49,7 @@ public function execute(Model $model, string $name, array $extra = []): NotifyTh
}

$html = preg_replace('/##\w+##/', 'N.D.', $html);

$theme->mail_body = $html;

// dddx($theme->mail_body);
Expand Down
2 changes: 1 addition & 1 deletion Models/Panels/NotifyThemePanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,4 @@ public function actions(): array {
>>>>>>> 6d24e5b (.)
return [];
}
}
}

0 comments on commit 3c80d41

Please sign in to comment.