Fixess nette 3.0 version
This commit is contained in:
@@ -88,14 +88,14 @@ final class HomePresenter extends BaseFrontPresenter
|
||||
|
||||
if ($clen) $query->withClen($clen);
|
||||
$result = $this->em->getTermRepository()->fetch($query)->setFetchJoinCollection(FALSE);
|
||||
|
||||
|
||||
if ($paginate) {
|
||||
$this["paginator"]->setItemCount($result->getTotalCount());
|
||||
$this["paginator"]->setItemCount(count($result));
|
||||
$result->applyPaginator($this['paginator']);
|
||||
$offset = $this['paginator']->getOffset();
|
||||
$itemsPerPage = $this['paginator']->getItemsPerPage();
|
||||
}
|
||||
*/
|
||||
*/
|
||||
$t = $this->em->getTranslationRepository()->find($translation);
|
||||
$this->template->translation = $t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user