Commit f811bfbb authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] php8.1 error

parent 74fa6a5f
......@@ -76,7 +76,7 @@ class ContentReplacerMiddleware implements MiddlewareInterface {
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface {
$response = $handler->handle($request);
if ($this->extensionConfiguration['disable']) {
if (isset($this->extensionConfiguration['disable']) && $this->extensionConfiguration['disable']) {
return $response;
}
......@@ -173,8 +173,10 @@ class ContentReplacerMiddleware implements MiddlewareInterface {
);
}
// required in order to generate the menu links later on
$typoScriptFrontendController->settingLanguage();
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '11.0.0', '<')) {
// required in order to generate the menu links later on
$typoScriptFrontendController->settingLanguage();
}
$typoScriptFrontendController->newCObj();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment