[BUGFIX] Restore compatibilty with TYPO3 9

This commit is contained in:
Philipp Dieter 2024-12-12 20:51:05 +01:00
parent 1bc7ad1eb0
commit 8502ea3910
2 changed files with 10 additions and 8 deletions

View File

@ -825,12 +825,14 @@ class ActionController extends BaseController
); );
} }
$this->view->assignMultiple($result); $this->view->assignMultiple($result);
return $this if (version_compare(TYPO3_branch, '10.0', '>=')) {
->responseFactory return $this
->createResponse() ->responseFactory
->withHeader('Content-Type', 'text/html; charset=utf-8') ->createResponse()
->withBody($this->streamFactory->createStream( ->withHeader('Content-Type', 'text/html; charset=utf-8')
(string)($html ?? $this->view->render())) ->withBody($this->streamFactory->createStream(
); (string)($html ?? $this->view->render()))
);
}
} }
} }

View File

@ -1,5 +1,5 @@
<?php <?php
defined('TYPO3') || die(); defined('TYPO3_MODE') || die();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'TemplatesAide', 'TemplatesAide',