Skip to content
Permalink
Browse files

Only pass limit when it is different.

In order to keep the helper simple, only pass the limit option
when it is not the default. This lets the helper always include limit
instead of needing to be smart.
  • Loading branch information...
markstory committed Sep 18, 2013
1 parent f866315 commit 106cc2a8ac5fc93a9838d21a9b6ff66d500e4dbb
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cake/Controller/Component/PaginatorComponent.php
@@ -223,7 +223,7 @@ public function paginate($object = null, $scope = array(), $whitelist = array())
'pageCount' => $pageCount,
'sort' => key($order),
'direction' => current($order),
'limit' => $limit,
'limit' => $defaults['limit'] != $options['limit'] ? $options['limit'] : null,
);
if (!isset($this->Controller->request['paging'])) {

0 comments on commit 106cc2a

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