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

This commit is contained in:
DamienMetzger
2012-11-21 19:44:14 +01:00
parent 2aa809a7ea
commit 33ef60652f

View File

@@ -123,8 +123,8 @@ class ReferralProgram extends Module
{
$langs = Language::getLanguages(false);
foreach ($langs AS $lang)
foreach ($this->_mails['name'] AS $name)
foreach ($this->_mails['ext'] AS $ext)
foreach (array('referralprogram-congratulations', 'referralprogram-invitation', 'referralprogram-voucher') AS $name)
foreach (array('txt', 'html') AS $ext)
{
$file = _PS_MAIL_DIR_.$lang['iso_code'].'/'.$name.'.'.$ext;
if (file_exists($file) AND !@unlink($file))