Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit db247558b07113efa62c7e78ae7e654bc4572735 1 parent 39715bc
@lorenzo lorenzo authored
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));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.