mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-19 02:20:09 +01:00
get itemsPerPage for unread/fav/archive views
This commit is contained in:
parent
6ecdd48a3f
commit
48ffc5a4b6
@ -99,6 +99,7 @@ class EntryController extends Controller
|
|||||||
->getRepository('WallabagCoreBundle:Entry')
|
->getRepository('WallabagCoreBundle:Entry')
|
||||||
->findUnreadByUser($this->getUser()->getId());
|
->findUnreadByUser($this->getUser()->getId());
|
||||||
|
|
||||||
|
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
|
||||||
$entries->setCurrentPage($page);
|
$entries->setCurrentPage($page);
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
@ -123,6 +124,7 @@ class EntryController extends Controller
|
|||||||
->getRepository('WallabagCoreBundle:Entry')
|
->getRepository('WallabagCoreBundle:Entry')
|
||||||
->findArchiveByUser($this->getUser()->getId());
|
->findArchiveByUser($this->getUser()->getId());
|
||||||
|
|
||||||
|
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
|
||||||
$entries->setCurrentPage($page);
|
$entries->setCurrentPage($page);
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
@ -147,6 +149,7 @@ class EntryController extends Controller
|
|||||||
->getRepository('WallabagCoreBundle:Entry')
|
->getRepository('WallabagCoreBundle:Entry')
|
||||||
->findStarredByUser($this->getUser()->getId());
|
->findStarredByUser($this->getUser()->getId());
|
||||||
|
|
||||||
|
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
|
||||||
$entries->setCurrentPage($page);
|
$entries->setCurrentPage($page);
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
|
Loading…
Reference in New Issue
Block a user