mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Removing deprecated DataList::limit() arguments
Use 2 arguments, the first being limit and the second offset instead.
This commit is contained in:
parent
68bb74820a
commit
3108dea2c2
@ -243,10 +243,6 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab
|
||||
if(!$limit && !$offset) {
|
||||
return $this;
|
||||
}
|
||||
if($limit && !is_numeric($limit)) {
|
||||
Deprecation::notice('3.0', 'Please pass limits as 2 arguments, rather than an array or SQL fragment.',
|
||||
Deprecation::SCOPE_GLOBAL);
|
||||
}
|
||||
return $this->alterDataQuery_30(function($query) use ($limit, $offset){
|
||||
$query->limit($limit, $offset);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user