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

This commit is contained in:
Stig Lindqvist 2012-03-09 15:28:11 +13:00
parent 2cb67efe07
commit 0a82b903bc

View File

@ -136,7 +136,7 @@ abstract class SS_ListDecorator extends ViewableData implements SS_List, SS_Sort
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);
}