[-] FO : #PSCFI-5343 : Fixed a problem of E-mail subject encoding

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14771 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aNiassy
2012-04-19 13:43:54 +00:00
parent a32a003b5c
commit e48476bee2
+1
View File
@@ -210,6 +210,7 @@ class MailCore
/* Create mail and attach differents parts */
$message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '.$subject);
$message->headers->setEncoding('Q');
$templateVars['{shop_logo}'] = (Configuration::get('PS_LOGO_MAIL') !== false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO_MAIL'))) ? $message->attach(new Swift_Message_Image(new Swift_File(_PS_IMG_DIR_.Configuration::get('PS_LOGO_MAIL')))) :
((file_exists(_PS_IMG_DIR_.'logo.jpg')) ? $message->attach(new Swift_Message_Image(new Swift_File(_PS_IMG_DIR_.Configuration::get('PS_LOGO')))) : '');
$templateVars['{shop_name}'] = Tools::safeOutput(Configuration::get('PS_SHOP_NAME'));