Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
content_replacer
Commits
f811bfbb
Commit
f811bfbb
authored
Feb 07, 2022
by
Matthias Adrowski
Browse files
[TASK] php8.1 error
parent
74fa6a5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Middleware/ContentReplacerMiddleware.php
View file @
f811bfbb
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment