diff --git a/model/MySQLDatabase.php b/model/MySQLDatabase.php old mode 100755 new mode 100644 index 9f5e70ca5..67d969b13 --- a/model/MySQLDatabase.php +++ b/model/MySQLDatabase.php @@ -832,8 +832,12 @@ class MySQLDatabase extends SS_Database { if(isset($objects)) $doSet = new DataObjectSet($objects); else $doSet = new DataObjectSet(); - $doSet->setPageLimits($start, $pageLength, $totalCount); - return $doSet; + $list = new PaginatedList($doSet); + $list->setPageStart($start); + $list->setPageLEngth($pageLength); + $list->setTotalItems($totalCount); + + return $list; } /**