// Normalize + use $this->smarty instead of $this->context->smarty in modules

This commit is contained in:
rMalie
2011-12-30 14:59:57 +00:00
parent 0d4212f8b7
commit 443092c811
27 changed files with 87 additions and 86 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ class DateOfDelivery extends Module
foreach ($params['carriers'] as $carrier)
$datesDelivery[(int)($carrier['id_carrier'])] = $this->_getDatesOfDelivery((int)($carrier['id_carrier']), $oos);
$this->context->smarty->assign(array(
$this->smarty->assign(array(
'datesDelivery' => $datesDelivery,
'id_carrier' => ($params['cart']->id_carrier ? (int)($params['cart']->id_carrier) : (int)(Configuration::get('PS_CARRIER_DEFAULT')))
));
@@ -136,7 +136,7 @@ class DateOfDelivery extends Module
if (!is_array($datesDelivery) OR !sizeof($datesDelivery))
return ;
$this->context->smarty->assign('datesDelivery', $datesDelivery);
$this->smarty->assign('datesDelivery', $datesDelivery);
return $this->display(__FILE__, 'orderDetail.tpl');
}