Update paginator.class.php

The paginator buttons were switched so the navigation was uncommon and lead to confusion.
This commit is contained in:
Christian 2019-10-29 10:33:05 +01:00 committed by GitHub
parent c943506ff8
commit d5a9fb8a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -109,14 +109,14 @@ class Paginator {
$html = '<div id="paginator">';
$html .= '<ul>';
if(self::get('showNext'))
if(self::get('showPrev'))
{
if($textPrevPage===false) {
$textPrevPage = '« '.$L->g('Previous page');
}
$html .= '<li class="left">';
$html .= '<a href="'.self::nextPageUrl().'">'.$textPrevPage.'</a>';
$html .= '<a href="'.self::previousPrevUrl().'">'.$textPrevPage.'</a>';
$html .= '</li>';
}
@ -124,14 +124,14 @@ class Paginator {
$html .= '<li class="list">'.(self::get('currentPage')+1).' / '.(self::get('numberOfPages')+1).'</li>';
}
if(self::get('showPrev'))
if(self::get('showNext'))
{
if($textNextPage===false) {
$textNextPage = $L->g('Next page').' »';
}
$html .= '<li class="right">';
$html .= '<a href="'.self::previousPageUrl().'">'.$textNextPage.'</a>';
$html .= '<a href="'.self::nextPageUrl().'">'.$textNextPage.'</a>';
$html .= '</li>';
}