Skip to content

Commit

Permalink
Removing deprecated DataList::limit() arguments
Browse files Browse the repository at this point in the history
Use 2 arguments, the first being limit and the second offset instead.
  • Loading branch information
Sean Harvey committed Nov 15, 2012
1 parent 68bb748 commit 3108dea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions model/DataList.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -243,10 +243,6 @@ public function limit($limit, $offset = 0) {
if(!$limit && !$offset) { if(!$limit && !$offset) {
return $this; 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){ return $this->alterDataQuery_30(function($query) use ($limit, $offset){
$query->limit($limit, $offset); $query->limit($limit, $offset);
}); });
Expand Down

0 comments on commit 3108dea

Please sign in to comment.