MINOR: Updated MySQLDatabase::searchEngine() to use the new PaginatedList API.

This commit is contained in:
ajshort 2011-04-01 15:10:27 +11:00 committed by Sam Minnee
parent fc8d442505
commit 8fb7b531cf

8
model/MySQLDatabase.php Executable file → Normal file
View File

@ -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;
}
/**