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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11944 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-30 14:59:57 +00:00
parent 9033c9c294
commit 58433f1881
27 changed files with 87 additions and 86 deletions
+3 -3
View File
@@ -153,7 +153,7 @@ class ProductToolTip extends Module
WHERE p.id_page_type = 1 AND p.id_object = '.(int)($id_product).' AND cp.time_start > \''.pSQL($date).'\'');
if (isset($nbPeople['nb']) AND $nbPeople['nb'] > 0)
$this->context->smarty->assign('nb_people', (int)($nbPeople['nb']));
$this->smarty->assign('nb_people', (int)($nbPeople['nb']));
}
/* Then, we try to display last sale */
@@ -170,7 +170,7 @@ class ProductToolTip extends Module
ORDER BY o.date_add DESC');
if (isset($order['date_add']) && Validate::isDateFormat($order['date_add']) && $order['date_add'] != '0000-00-00 00:00:00')
$this->context->smarty->assign('date_last_order', $order['date_add']);
$this->smarty->assign('date_last_order', $order['date_add']);
else
{
/* No sale? display last cart add instead */
@@ -182,7 +182,7 @@ class ProductToolTip extends Module
WHERE cp.id_product = '.(int)($id_product));
if (isset($cart['date_add']) && Validate::isDateFormat($cart['date_add']) && $cart['date_add'] != '0000-00-00 00:00:00')
$this->context->smarty->assign('date_last_cart', $cart['date_add']);
$this->smarty->assign('date_last_cart', $cart['date_add']);
}
}
}