diff --git a/Classes/Controller/ActionController.php b/Classes/Controller/ActionController.php index 2cc9c7e..4b05253 100644 --- a/Classes/Controller/ActionController.php +++ b/Classes/Controller/ActionController.php @@ -825,12 +825,14 @@ class ActionController extends BaseController ); } $this->view->assignMultiple($result); - return $this - ->responseFactory - ->createResponse() - ->withHeader('Content-Type', 'text/html; charset=utf-8') - ->withBody($this->streamFactory->createStream( - (string)($html ?? $this->view->render())) - ); + if (version_compare(TYPO3_branch, '10.0', '>=')) { + return $this + ->responseFactory + ->createResponse() + ->withHeader('Content-Type', 'text/html; charset=utf-8') + ->withBody($this->streamFactory->createStream( + (string)($html ?? $this->view->render())) + ); + } } } diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php index c6171a4..d359772 100644 --- a/Configuration/TCA/Overrides/tt_content.php +++ b/Configuration/TCA/Overrides/tt_content.php @@ -1,5 +1,5 @@