From db247558b07113efa62c7e78ae7e654bc4572735 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Tue, 10 Jul 2012 20:46:56 -0430 Subject: [PATCH] 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 --- lib/Cake/View/Helper/PaginatorHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/View/Helper/PaginatorHelper.php b/lib/Cake/View/Helper/PaginatorHelper.php index 22b375e98bc..05a9935b114 100644 --- a/lib/Cake/View/Helper/PaginatorHelper.php +++ b/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)); } }