mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge branch '3.6' into 3
This commit is contained in:
commit
35f3da3483
@ -457,7 +457,7 @@ class BlogController extends PageController
|
|||||||
$posts->setPageLength($pageSize);
|
$posts->setPageLength($pageSize);
|
||||||
|
|
||||||
// Set current page
|
// Set current page
|
||||||
$start = (int)$this->request->getVar($posts->getPaginationGetVar());
|
$start = max(0, (int)$this->request->getVar($posts->getPaginationGetVar()));
|
||||||
$posts->setPageStart($start);
|
$posts->setPageStart($start);
|
||||||
|
|
||||||
return $posts;
|
return $posts;
|
||||||
|
Loading…
Reference in New Issue
Block a user