Merge pull request #1293 from wallabag/v2-items-per-page

get itemsPerPage for unread/fav/archive views
This commit is contained in:
Jeremy Benoist 2015-08-07 20:10:07 +02:00
commit 55333dfd21

View File

@ -99,6 +99,7 @@ class EntryController extends Controller
->getRepository('WallabagCoreBundle:Entry')
->findUnreadByUser($this->getUser()->getId());
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
$entries->setCurrentPage($page);
return $this->render(
@ -123,6 +124,7 @@ class EntryController extends Controller
->getRepository('WallabagCoreBundle:Entry')
->findArchiveByUser($this->getUser()->getId());
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
$entries->setCurrentPage($page);
return $this->render(
@ -147,6 +149,7 @@ class EntryController extends Controller
->getRepository('WallabagCoreBundle:Entry')
->findStarredByUser($this->getUser()->getId());
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
$entries->setCurrentPage($page);
return $this->render(