Browse files

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
  • Loading branch information...
1 parent 39715bc commit db247558b07113efa62c7e78ae7e654bc4572735 @lorenzo lorenzo committed Jul 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/View/Helper/PaginatorHelper.php
View
4 lib/Cake/View/Helper/PaginatorHelper.php
@@ -701,7 +701,7 @@ public function numbers($options = array()) {
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 @@ public function numbers($options = array()) {
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));
}
}

0 comments on commit db24755

Please sign in to comment.