Skip to content
Snippets Groups Projects
Commit 994622b0 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] NewsFeedController

parent 8fa2bb6e
No related branches found
No related tags found
1 merge request!38Feature upgrade to typo3 11
......@@ -46,7 +46,7 @@ class NewsFeedController extends AbstractController {
* @return void
* @throws \TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException
*/
public function indexAction() {
public function indexAction(): ?\Psr\Http\Message\ResponseInterface {
$categories = GeneralUtility::intExplode(',', $this->settings['showCategories'], TRUE);
$tags = GeneralUtility::intExplode(',', $this->settings['showTags'], TRUE);
$startTime = (int) $this->settings['starttime'];
......@@ -74,6 +74,13 @@ class NewsFeedController extends AbstractController {
$this->view->assign('news', $news);
$this->view->assign('newsCategories', $newsCategories);
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '11.0.0', '<')) {
return NULL;
}
else {
return $this->htmlResponse();
}
}
/**
......
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