// Merge -> revision 7875
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7877 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -125,7 +125,7 @@ class Dejala extends CarrierModule
|
||||
$djlCarrier = DejalaCarrierUtils::getCarrierByName($this->name) ;
|
||||
if (Configuration::get('PS_CARRIER_DEFAULT') == (int)($djlCarrier->id))
|
||||
{
|
||||
$carriers = Carrier::getCarriers($this->context->language->id, true, false, false, NULL, PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE);
|
||||
$carriers = Carrier::getCarriers($this->context->language->id, true, false, false, NULL, Carrier::PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE);
|
||||
foreach($carriers as $carrier)
|
||||
{
|
||||
if ($carrier['active'] AND !$carrier['deleted'] AND ($carrier['external_module_name'] != $this->name))
|
||||
|
||||
@@ -86,8 +86,9 @@ class DejalaCarrierUtils
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function getCarrierByName($name) {
|
||||
$carriers = Carrier::getCarriers(Context::getContext()->language->id, true, false, false, NULL, ALL_CARRIERS);
|
||||
public static function getCarrierByName($name)
|
||||
{
|
||||
$carriers = Carrier::getCarriers(Context::getContext()->language->id, true, false, false, null, Carrier::ALL_CARRIERS);
|
||||
foreach($carriers as $carrier)
|
||||
if (!$carrier['deleted'] AND $carrier['external_module_name'] == $name)
|
||||
return new Carrier((int)$carrier['id_carrier']) ;
|
||||
|
||||
Reference in New Issue
Block a user