[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);
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()))
);
}
}
}

View File

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