[-] FO : Fixed bug #PSCFI-1652 - The Best Sales pagination now works properly

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@6068 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
gBrunier
2011-04-26 10:17:35 +00:00
parent f8501558fc
commit e772df0473
+1 -2
View File
@@ -40,9 +40,8 @@ class BestSalesControllerCore extends FrontController
$nbProducts = (int)(ProductSale::getNbSales());
$this->pagination($nbProducts);
global $orderBy, $orderWay, $p, $n;
self::$smarty->assign(array(
'products' => ProductSale::getBestSales((int)(self::$cookie->id_lang), (int)($p) - 1, (int)($n), $this->orderBy, $this->orderWay),
'products' => ProductSale::getBestSales((int)(self::$cookie->id_lang), (int)($this->p) - 1, (int)($this->n), $this->orderBy, $this->orderWay),
'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
'nbProducts' => $nbProducts,
'homeSize' => Image::getSize('home')