small fix dir

This commit is contained in:
rsgrinko committed 2021-12-07 14:10:28 +03:00
1 parent 354a539b91
commit df9258417b
1 file changed
+1 -1
+1 -1
View File
@@ -281,7 +281,7 @@ class CMail
// Тема письма
$subject = (empty($this->subject)) ? 'No subject' : $this->subject;
$body = file_get_contents(__DIR__.'/../../assets/mail_template/'.$template.'.html');
$body = file_get_contents(__DIR__.'/../../assets/mail_templates/'.$template.'.html');
foreach($this->arrTemplate as $templateKey => $templateValue){
$body = str_replace('{'.$templateKey.'}', $templateValue, $body);
}