[-] MO : fixed referralprogram uninstall #PSCFV-5680
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user