Skip to content

Commit e9214b8

Browse files
committed
back to use shared pager instance in Model::paginate
1 parent 8dcf489 commit e9214b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ public function chunk(int $size, Closure $userFunc)
11231123
*/
11241124
public function paginate(int $perPage = null, string $group = 'default', int $page = 0)
11251125
{
1126-
$pager = \Config\Services::pager(null, null, true);
1126+
$pager = \Config\Services::pager(null, null, false);
11271127
$page = $page >= 1 ? $page : $pager->getCurrentPage($group);
11281128

11291129
$total = $this->countAllResults(false);

0 commit comments

Comments
 (0)