// Context part 18

This commit is contained in:
tDidierjean
2011-07-25 15:19:39 +00:00
parent 9b0b588b09
commit 2c4f27f1be
41 changed files with 611 additions and 638 deletions
+3 -3
View File
@@ -52,14 +52,14 @@ class HistoryControllerCore extends FrontController
{
parent::process();
if ($orders = Order::getCustomerOrders((int)(self::$cookie->id_customer)))
if ($orders = Order::getCustomerOrders($this->context->customer->id))
foreach ($orders AS &$order)
{
$myOrder = new Order((int)($order['id_order']));
if (Validate::isLoadedObject($myOrder))
$order['virtual'] = $myOrder->isVirtual(false);
}
self::$smarty->assign(array(
$this->context->smarty->assign(array(
'orders' => $orders,
'invoiceAllowed' => (int)(Configuration::get('PS_INVOICE')),
'slowValidation' => Tools::isSubmit('slowvalidation')
@@ -69,7 +69,7 @@ class HistoryControllerCore extends FrontController
public function displayContent()
{
parent::displayContent();
self::$smarty->display(_PS_THEME_DIR_.'history.tpl');
$this->context->smarty->display(_PS_THEME_DIR_.'history.tpl');
}
}