Skip to content
Permalink
Browse files

Fix indentation.

  • Loading branch information...
markstory committed Feb 16, 2014
1 parent e773d97 commit 372312f376bcf3a6ccf280384c4964fd9d6b3751
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/View/Helper/PaginatorHelper.php
@@ -426,9 +426,13 @@ public function url($options = array(), $model = null) {
if (!empty($url['page']) && $url['page'] == 1) {
$url['page'] = null;
}
if (isset($paging['sortDefault'], $paging['directionDefault'], $url['sort'], $url['direction']) && $url['sort'] === $paging['sortDefault'] && $url['direction'] === $paging['directionDefault'] ) {
$url['sort'] = $url['direction'] = null;
}
if (
isset($paging['sortDefault'], $paging['directionDefault'], $url['sort'], $url['direction']) &&
$url['sort'] === $paging['sortDefault'] &&
$url['direction'] === $paging['directionDefault']
) {
$url['sort'] = $url['direction'] = null;
}
return parent::url($url);
}

0 comments on commit 372312f

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