mirror of
https://github.com/kvazar-network/webapp.git
synced 2025-03-12 13:41:43 +00:00
fix pagination offset
This commit is contained in:
parent
037baf4eac
commit
c2b49634d0
@ -50,7 +50,7 @@ class MainController extends AbstractController
|
|||||||
[
|
[
|
||||||
'time' => 'desc'
|
'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')
|
$this->getParameter('app.main.index.limit')
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user