From 8502ea391049a6a3d5f78c07f06ca980654daac2 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Thu, 12 Dec 2024 20:51:05 +0100 Subject: [PATCH] [BUGFIX] Restore compatibilty with TYPO3 9 --- Classes/Controller/ActionController.php | 16 +++++++++------- Configuration/TCA/Overrides/tt_content.php | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) 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 @@