[-] MO : Fix bug #PSCFV-6364 pagination in loyalty module, thankx Matthieu@202-ecommerce.com

This commit is contained in:
Gregory Roussac
2013-01-29 12:43:47 +01:00
parent 6d61b22a4f
commit e6378d8cc0
@@ -183,7 +183,8 @@ class LoyaltyDefaultModuleFrontController extends ModuleFrontController
'page' => ((int)Tools::getValue('p') > 0 ? (int)Tools::getValue('p') : 1),
'nbpagination' => ((int)Tools::getValue('n') > 0 ? (int)Tools::getValue('n') : 10),
'nArray' => array(10, 20, 50),
'max_page' => floor(count($orders) / ((int)Tools::getValue('n') > 0 ? (int)Tools::getValue('n') : 10))
'max_page' => floor(count($orders) / ((int)Tools::getValue('n') > 0 ? (int)Tools::getValue('n') : 10)),
'pagination_link' => $this->getSummaryPaginationLink(array(), $this->context->smarty)
));
/* Discounts */