Permalink
Browse files

MINOR ListDecorator::limit must exactly match SS_Limitable::limit()

  • Loading branch information...
1 parent 2cb67ef commit 0a82b903bcbb62c2bb5e7ed76e8b3f7461ae6168 @stojg stojg committed Mar 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 model/ListDecorator.php
View
@@ -136,7 +136,7 @@ public function filter(){
return call_user_func_array(array($this->list, 'filter'), $args);
}
- public function limit($length, $offset) {
+ public function limit($limit, $offset = 0) {
return $this->list->getRange($length, $offset);
}

0 comments on commit 0a82b90

Please sign in to comment.