1
0
Fork 0
mirror of synced 2024-10-02 02:07:04 +13:00

fix formatting

This commit is contained in:
Damodar Lohani 2023-12-09 06:41:24 +00:00
parent e4467521f8
commit ffdc662022
2 changed files with 4 additions and 4 deletions

View file

@ -376,4 +376,4 @@ class Mail extends Event
'events' => Event::generateEvents($this->getEvent(), $this->getParams())
]);
}
}
}

View file

@ -61,9 +61,9 @@ class Mails extends Action
$body = $payload['body'];
$attachment = $payload['attachment'] ?? [];
$bodyTemplate = $payload['bodyTemplate'];
if(empty($bodyTemplate)) {
if (empty($bodyTemplate)) {
$bodyTemplate = __DIR__ . '/../../../../app/config/locale/templates/email-base.tpl';
}
}
$bodyTemplate = Template::fromFile($bodyTemplate);
$bodyTemplate->setParam('{{body}}', $body);
foreach ($variables as $key => $value) {
@ -143,4 +143,4 @@ class Mails extends Action
return $mail;
}
}
}