Skip to content
Permalink
Browse files

Fix the defect that show :page where use custom route rules and the p…

…age=1
  • Loading branch information...
macnie committed Jul 4, 2015
1 parent e31538a commit a6a774bfb5dc54d1373d285efb390bde1091b5b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/View/Helper/PaginatorHelper.php
@@ -435,7 +435,7 @@ public function generateUrl(array $options = [], $model = null, $full = false)
$url = array_merge($url, $options);
if (!empty($url['page']) && $url['page'] == 1) {
$url['page'] = null;
$url['page'] = false;
}
if (isset($paging['sortDefault'], $paging['directionDefault'], $url['sort'], $url['direction']) &&
$url['sort'] === $paging['sortDefault'] &&

0 comments on commit a6a774b

Please sign in to comment.
You can’t perform that action at this time.