diff --git a/bl-kernel/helpers/paginator.class.php b/bl-kernel/helpers/paginator.class.php
index 70207bef..2a1727f8 100644
--- a/bl-kernel/helpers/paginator.class.php
+++ b/bl-kernel/helpers/paginator.class.php
@@ -99,7 +99,7 @@ class Paginator {
$uri = $domain.'/'.$filter.'/'.$url->slug();
}
- return $uri.'?page='.$pageNumber;
+ return $uri.($pageNumber > 1 ? '?page='.$pageNumber : '');
}
public static function html($textPrevPage=false, $textNextPage=false, $showPageNumber=false)
@@ -144,7 +144,7 @@ class Paginator {
/*
* Bootstrap Pagination
*/
- public static function bootstrap_html($textPrevPage=false, $textNextPage=false, $showPageNumber=false){
+ public static function bootstrap_html($textPrevPage=false, $textNextPage=false, $showPageNumber=false, $showFirstLast=false, $textFirstPage=false, $textLastPage=false){
global $language;
@@ -154,39 +154,56 @@ class Paginator {
$first_page = self::firstPage();
$last_page = self::lastPageUrl();
$show_next = (self::showNext()) ? "" : "disabled";
- $show_previois = (self::showPrev()) ? "" : "disabled";
+ $show_previous = (self::showPrev()) ? "" : "disabled";
+
+ if($textPrevPage===false) {
+ $textPrevPage = '« '.$language->get('Previous');
+ }
+ if($textNextPage===false) {
+ $textNextPage = $language->get('Next').' »';
+ }
+ if($textFirstPage===false) {
+ $textFirstPage = $language->get('First');
+ }
+ if($textLastPage===false) {
+ $textLastPage = $language->get('Last');
+ }
$html = '';