aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/EntryController.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-01 09:29:16 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-01 09:29:18 +0200
commit53da8ad844b379ab9d82f2497cc5de91da9a1388 (patch)
treeb7964b0893025cd4b1cf41f661fccbb62e6424be /src/Wallabag/CoreBundle/Controller/EntryController.php
parent2a0eec07a5630401a9ceb7add65604f79238f10c (diff)
downloadwallabag-53da8ad844b379ab9d82f2497cc5de91da9a1388.tar.gz
wallabag-53da8ad844b379ab9d82f2497cc5de91da9a1388.tar.zst
wallabag-53da8ad844b379ab9d82f2497cc5de91da9a1388.zip
Page parameter was never used in the function
It could have been used if we set the current page inside PreparePagerForEntries. But we did that in each controller because we can have an OutOfRangeCurrentPageException
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 8d2ac6d4..9fe3e693 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -321,8 +321,7 @@ class EntryController extends Controller
321 321
322 $pagerAdapter = new DoctrineORMAdapter($qb->getQuery(), true, false); 322 $pagerAdapter = new DoctrineORMAdapter($qb->getQuery(), true, false);
323 323
324 $entries = $this->get('wallabag_core.helper.prepare_pager_for_entries') 324 $entries = $this->get('wallabag_core.helper.prepare_pager_for_entries')->prepare($pagerAdapter);
325 ->prepare($pagerAdapter, $page);
326 325
327 try { 326 try {
328 $entries->setCurrentPage($page); 327 $entries->setCurrentPage($page);