Skip to content

Commit

Permalink
[BUGFIX] 8LTS: Set body tag
Browse files Browse the repository at this point in the history
After the changes from https://forge.typo3.org/issues/77184 we need
another way to set the body tag if mapped.

Resolves: #197
  • Loading branch information
Alexander Opitz committed Aug 20, 2018
1 parent 0d85dba commit a505901
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/Domain/Model/HtmlMarkup.php
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,11 @@ public function setHeaderBodyParts(

// Body tag:
if ($MappingInfo_head['addBodyTag'] && $BodyTag_cached) {
$GLOBALS['TSFE']->defaultBodyTag = $BodyTag_cached;
if (version_compare(TYPO3_version, '8.3.0', '>=')) {
$GLOBALS['TSFE']->pSetup['bodyTag'] = $BodyTag_cached;
} else {
$GLOBALS['TSFE']->defaultBodyTag = $BodyTag_cached;
}
}
}
}
Expand Down

0 comments on commit a505901

Please sign in to comment.