Browse Source

fix pagination offset

master
ghost 10 months ago
parent
commit
6aaa1da03e
  1. 2
      src/Controller/MainController.php

2
src/Controller/MainController.php

@ -102,7 +102,7 @@ class MainController extends AbstractController @@ -102,7 +102,7 @@ class MainController extends AbstractController
[
'time' => 'desc'
],
$request->get('part') > 1 ? (int) $request->get('part') * $this->getParameter('app.main.index.limit') : 0,
$request->get('part') > 1 ? ((int) $request->get('part') - 1) * (int) $this->getParameter('app.main.index.limit') : 0,
$this->getParameter('app.main.index.limit')
),
'title' => $this->_title(

Loading…
Cancel
Save