mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
adding fix for Paginator numbers, #2891
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5485 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2d7be853ce
commit
4c26620a9e
1 changed files with 5 additions and 2 deletions
|
@ -478,9 +478,12 @@ class PaginatorHelper extends AppHelper {
|
||||||
} else {
|
} else {
|
||||||
for ($i = 1; $i <= $params['pageCount']; $i++) {
|
for ($i = 1; $i <= $params['pageCount']; $i++) {
|
||||||
if ($i == $params['page']) {
|
if ($i == $params['page']) {
|
||||||
$out .= $i . $separator;
|
$out .= $i;
|
||||||
} else {
|
} else {
|
||||||
$out .= $this->link($i, array('page' => $i), $options) . $separator;
|
$out .= $this->link($i, array('page' => $i), $options);
|
||||||
|
}
|
||||||
|
if($i != $params['pageCount']) {
|
||||||
|
$out .= $separator;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue