diff --git a/Actions/EmailTemplateReplacerAction.php b/Actions/EmailTemplateReplacerAction.php index d15a6a3b..12e1a693 100644 --- a/Actions/EmailTemplateReplacerAction.php +++ b/Actions/EmailTemplateReplacerAction.php @@ -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};