Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing deprecated DataList::limit() arguments

Use 2 arguments, the first being limit and the second offset instead.
  • Loading branch information...
commit 3108dea2c245a5525ada879f5396b27b5c6bfa45 1 parent 68bb748
@halkyon halkyon authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 model/DataList.php
View
4 model/DataList.php
@@ -243,10 +243,6 @@ public function limit($limit, $offset = 0) {
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);
});
Please sign in to comment.
Something went wrong with that request. Please try again.