From 4d96a1c24691d769416b71a03c84ca9d31aedb3a Mon Sep 17 00:00:00 2001 From: Kevin Ditscheid <kevin.ditscheid@sgalinski.de> Date: Thu, 2 Sep 2021 13:08:07 +0200 Subject: [PATCH] [TASK] Remove the recalling of the indexAction, because it is not needed anymore with the languagevisibility changes --- Classes/Controller/LatestController.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Classes/Controller/LatestController.php b/Classes/Controller/LatestController.php index bca9fa8..393c956 100644 --- a/Classes/Controller/LatestController.php +++ b/Classes/Controller/LatestController.php @@ -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); } -- GitLab