Fix str_replace missing parameter

This commit is contained in:
grandeljay 2022-06-16 21:56:28 +02:00
parent 28a449e513
commit feb2f7d2f5

View file

@ -25,7 +25,7 @@ class Email
private string $part
) {
$this->mjml = file_get_contents(ROOT . '/src/mjml/' . $this->template . '.mjml');
$this->mjml = str_replace('MJML_PART', 'parts/' . $this->part . '.mjml');
$this->mjml = str_replace('MJML_PART', 'parts/' . $this->part . '.mjml', $this->mjml);
}
public function send(): bool