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

This commit is contained in:
gBrunier
2011-04-26 10:17:35 +00:00
parent aa0651d5f0
commit 9f312b0b91
+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')