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:
Jose Lorenzo Rodriguez 2012-07-10 20:46:56 -04:30
parent 39715bcd89
commit db247558b0

View file

@ -701,7 +701,7 @@ class PaginatorHelper extends AppHelper {
if ($offset < $start - 1) {
$out .= $this->first($offset, compact('tag', 'separator', 'ellipsis', 'class'));
} 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) {
$out .= $this->last($offset, compact('tag', 'separator', 'ellipsis', 'class'));
} else {
$out .= $this->last($offset, compact('tag', 'separator', 'class') + array('before' => $separator));
$out .= $this->last($offset, compact('tag', 'separator', 'class', 'ellipsis') + array('before' => $separator));
}
}