* Modify pagination.

This commit is contained in:
tianshujie98
2020-09-01 16:54:47 +08:00
parent 2593f6cc3b
commit 89bbfdfe22
+1 -1
View File
@@ -253,8 +253,8 @@ class design extends control
}
/* Init pager. */
$recTotal = count($revisions);
$this->app->loadClass('pager', $static = true);
$recTotal = count($revisions);
$pager = new pager($recTotal, $recPerPage, $pageID);
$revisions = array_chunk($revisions, $pager->recPerPage);