// Context part 18

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7723 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-25 15:19:39 +00:00
parent 4caa9d2775
commit 9e349dd274
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');
}
}