Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv authored and Malebestia committed Sep 4, 2023
1 parent b208c65 commit fa178f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Actions/EmailTemplateReplacerAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ class EmailTemplateReplacerAction
/**
* Execute the action.
*/
public function execute(Model $notify_theme, Model $model, string $keyword): string
public function execute(string $body_html, Model $model, string $keyword): string
{

$text = $notify_theme->body_html;
$text = $body_html;

$model_to_array = $model->toArray();

foreach ($model_to_array as $key => $value) {
if (is_string($value) || null == $value) {
if ($model == 'profile') {
if ($keyword == 'profile') {
$val = $model->getProfileExtraFieldValueAttribute('name', $key);
} else {
$val = $model->{$key};
Expand Down

0 comments on commit fa178f3

Please sign in to comment.