[-] FO : removed deprecated configuration var "PS_VOUCHERS" #PSCFV-5240
// Removed useless DOS protection
This commit is contained in:
@@ -65,7 +65,7 @@ class BlockMyAccount extends Module
|
||||
return false;
|
||||
|
||||
$this->smarty->assign(array(
|
||||
'voucherAllowed' => (int)Configuration::get('PS_VOUCHERS'),
|
||||
'voucherAllowed' => CartRule::isFeatureActive(),
|
||||
'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN'),
|
||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock'),
|
||||
));
|
||||
|
||||
@@ -63,7 +63,7 @@ class Blockmyaccountfooter extends Module
|
||||
if (!$params['cookie']->isLogged())
|
||||
return false;
|
||||
$smarty->assign(array(
|
||||
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
|
||||
'voucherAllowed' => CartRule::isFeatureActive(),
|
||||
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
|
||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
|
||||
));
|
||||
@@ -95,7 +95,7 @@ class Blockmyaccountfooter extends Module
|
||||
global $smarty;
|
||||
|
||||
$smarty->assign(array(
|
||||
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
|
||||
'voucherAllowed' => CartRule::isFeatureActive(),
|
||||
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
|
||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user