mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +00:00
Correctly passing ellipsis options to all internal method calls insie
PaginatorHelper::numbers(), under some combinations of modulus/limit it would not get passed even though there are pages in between to show
This commit is contained in:
parent
39715bcd89
commit
db247558b0
1 changed files with 2 additions and 2 deletions
|
@ -701,7 +701,7 @@ class PaginatorHelper extends AppHelper {
|
||||||
if ($offset < $start - 1) {
|
if ($offset < $start - 1) {
|
||||||
$out .= $this->first($offset, compact('tag', 'separator', 'ellipsis', 'class'));
|
$out .= $this->first($offset, compact('tag', 'separator', 'ellipsis', 'class'));
|
||||||
} else {
|
} else {
|
||||||
$out .= $this->first($offset, compact('tag', 'separator', 'class') + array('after' => $separator));
|
$out .= $this->first($offset, compact('tag', 'separator', 'class', 'ellipsis') + array('after' => $separator));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -735,7 +735,7 @@ class PaginatorHelper extends AppHelper {
|
||||||
if ($offset <= $last && $params['pageCount'] - $end > $offset) {
|
if ($offset <= $last && $params['pageCount'] - $end > $offset) {
|
||||||
$out .= $this->last($offset, compact('tag', 'separator', 'ellipsis', 'class'));
|
$out .= $this->last($offset, compact('tag', 'separator', 'ellipsis', 'class'));
|
||||||
} else {
|
} else {
|
||||||
$out .= $this->last($offset, compact('tag', 'separator', 'class') + array('before' => $separator));
|
$out .= $this->last($offset, compact('tag', 'separator', 'class', 'ellipsis') + array('before' => $separator));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue