mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR ListDecorator::limit must exactly match SS_Limitable::limit()
This commit is contained in:
parent
2cb67efe07
commit
0a82b903bc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user