Skip to content
Snippets Groups Projects
Commit 4d96a1c2 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Remove the recalling of the indexAction, because it is not needed...

[TASK] Remove the recalling of the indexAction, because it is not needed anymore with the languagevisibility changes
parent 2f6f7f07
No related branches found
No related tags found
1 merge request!34[TASK] Remove the recalling of the indexAction, because it is not needed...
......@@ -103,18 +103,6 @@ class LatestController extends AbstractController {
}
}
// Redo this function, until $newsMetaData gets the $limit. Needed because of languagevisibility.
if (count($newsMetaData) < $limit) {
$offset += $limit;
$maxCount = $this->newsRepository->getCountOfLastUpdatedOrHighlightedNewsByCategories(
FALSE, $categoryUids, TRUE, $sortBy, $tagUids, $startTime, $endTime
);
if ($offset < $maxCount) {
$this->indexAction($newsMetaData, $offset);
return;
}
}
$this->view->assign('newsMetaData', $newsMetaData);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment