[-] MO : fixed referralprogram uninstall #PSCFV-5680

This commit is contained in:
DamienMetzger
2012-11-21 19:44:14 +01:00
parent 2aa809a7ea
commit 33ef60652f
+2 -2
View File
@@ -123,8 +123,8 @@ class ReferralProgram extends Module
{ {
$langs = Language::getLanguages(false); $langs = Language::getLanguages(false);
foreach ($langs AS $lang) foreach ($langs AS $lang)
foreach ($this->_mails['name'] AS $name) foreach (array('referralprogram-congratulations', 'referralprogram-invitation', 'referralprogram-voucher') AS $name)
foreach ($this->_mails['ext'] AS $ext) foreach (array('txt', 'html') AS $ext)
{ {
$file = _PS_MAIL_DIR_.$lang['iso_code'].'/'.$name.'.'.$ext; $file = _PS_MAIL_DIR_.$lang['iso_code'].'/'.$name.'.'.$ext;
if (file_exists($file) AND !@unlink($file)) if (file_exists($file) AND !@unlink($file))