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
This commit is contained in:
gwoo 2007-08-04 15:51:37 +00:00
parent 2d7be853ce
commit 4c26620a9e

View file

@ -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;
}
}
}