From 4c26620a9eb550f4caf71373c3743dbe2e008910 Mon Sep 17 00:00:00 2001 From: gwoo Date: Sat, 4 Aug 2007 15:51:37 +0000 Subject: [PATCH] adding fix for Paginator numbers, #2891 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5485 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/paginator.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/helpers/paginator.php b/cake/libs/view/helpers/paginator.php index 1674bbcb3..6aa35f69c 100644 --- a/cake/libs/view/helpers/paginator.php +++ b/cake/libs/view/helpers/paginator.php @@ -478,9 +478,12 @@ class PaginatorHelper extends AppHelper { } else { for ($i = 1; $i <= $params['pageCount']; $i++) { if ($i == $params['page']) { - $out .= $i . $separator; + $out .= $i; } else { - $out .= $this->link($i, array('page' => $i), $options) . $separator; + $out .= $this->link($i, array('page' => $i), $options); + } + if($i != $params['pageCount']) { + $out .= $separator; } } }