diff --git a/Classes/Controller/PostController.php b/Classes/Controller/PostController.php index a68678d1..b1d20854 100644 --- a/Classes/Controller/PostController.php +++ b/Classes/Controller/PostController.php @@ -34,7 +34,6 @@ use T3G\AgencyPack\Blog\Service\CacheService; use T3G\AgencyPack\Blog\Service\MetaService; use T3G\AgencyPack\Blog\Utility\ArchiveUtility; -use TYPO3\CMS\Core\Utility\ArrayUtility; use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; use TYPO3\CMS\Extbase\Mvc\View\ViewInterface; use TYPO3\CMS\Extbase\Utility\LocalizationUtility; @@ -166,8 +165,7 @@ protected function initializeView(ViewInterface $view): void */ public function listRecentPostsAction(): void { - $maximumItems = (int)ArrayUtility::getValueByPath($this->settings, 'lists.posts.maximumDisplayedItems', '.') ?: 0; - + $maximumItems = (int) ($this->settings['lists']['posts']['maximumDisplayedItems'] ?? 0); $posts = (0 === $maximumItems) ? $this->postRepository->findAll() : $this->postRepository->findAllWithLimit($maximumItems);