mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-11 17:35:25 +00:00
remove dead code
This commit is contained in:
parent
109d67dbb1
commit
c937de3443
1 changed files with 0 additions and 23 deletions
|
@ -201,29 +201,6 @@ class EntryController extends Controller
|
||||||
'currentPage' => $page,
|
'currentPage' => $page,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($request->query->has($form->getName())) {
|
|
||||||
// manually bind values from the request
|
|
||||||
$form->submit($request->query->get($form->getName()));
|
|
||||||
|
|
||||||
// build the query from the given form object
|
|
||||||
$this->get('lexik_form_filter.query_builder_updater')->addFilterConditions($form, $filterBuilder);
|
|
||||||
}
|
|
||||||
|
|
||||||
$pagerAdapter = new DoctrineORMAdapter($filterBuilder->getQuery());
|
|
||||||
$entries = new Pagerfanta($pagerAdapter);
|
|
||||||
|
|
||||||
$entries->setMaxPerPage($this->getUser()->getConfig()->getItemsPerPage());
|
|
||||||
$entries->setCurrentPage($page);
|
|
||||||
|
|
||||||
return $this->render(
|
|
||||||
'WallabagCoreBundle:Entry:entries.html.twig',
|
|
||||||
array(
|
|
||||||
'form' => $form->createView(),
|
|
||||||
'entries' => $entries,
|
|
||||||
'currentPage' => $page,
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue