[-] Core: check the existence of the overriden emails templates before try to sending them
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ class MailCore
|
|||||||
$template_path = $theme_path.'mails/';
|
$template_path = $theme_path.'mails/';
|
||||||
$override_mail = true;
|
$override_mail = true;
|
||||||
}
|
}
|
||||||
else if (!file_exists($template_path.$template.'.txt') && ($configuration['PS_MAIL_TYPE'] == Mail::TYPE_BOTH || $configuration['PS_MAIL_TYPE'] == Mail::TYPE_TEXT))
|
if (!file_exists($template_path.$template.'.txt') && ($configuration['PS_MAIL_TYPE'] == Mail::TYPE_BOTH || $configuration['PS_MAIL_TYPE'] == Mail::TYPE_TEXT))
|
||||||
{
|
{
|
||||||
Tools::dieOrLog(Tools::displayError('Error - The following e-mail template is missing:').' '.$template_path.$template.'.txt', $die);
|
Tools::dieOrLog(Tools::displayError('Error - The following e-mail template is missing:').' '.$template_path.$template.'.txt', $die);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user