// 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
@@ -40,8 +40,8 @@ class BestSalesControllerCore extends FrontController
$nbProducts = (int)ProductSale::getNbSales();
$this->pagination($nbProducts);
self::$smarty->assign(array(
'products' => ProductSale::getBestSales((int)self::$cookie->id_lang, (int)$this->p - 1, (int)$this->n, $this->orderBy, $this->orderWay),
$this->context->smarty->assign(array(
'products' => ProductSale::getBestSales($this->context->language->id, $this->p - 1, $this->n, $this->orderBy, $this->orderWay),
'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
'nbProducts' => $nbProducts,
'homeSize' => Image::getSize('home')
@@ -57,7 +57,7 @@ class BestSalesControllerCore extends FrontController
public function displayContent()
{
parent::displayContent();
self::$smarty->display(_PS_THEME_DIR_.'best-sales.tpl');
$this->context->smarty->display(_PS_THEME_DIR_.'best-sales.tpl');
}
}