Skip to content

Commit 41b11dc

Browse files
cweiskeNamelessCoder
authored andcommitted
[BUGFIX] Use addRootLineFields on v12.4
Commit "[BUGFIX] Avoid addRootLineFields on v13" prevented loading rootline fields on TYPO3 v12.4.26, leading to a missing "nav_hide" field needed by the breadcrumb viewhelper. We correctly check that it's a TYPO3 version less than 13, instead of less-or-equal than 12.4.
1 parent 63cf450 commit 41b11dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext_localconf.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['v'] = ['FluidTYPO3\\Vhs\\ViewHelpers'];
3838

39-
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '12.4', '<=')) {
39+
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '13.0', '<')) {
4040
// add navigtion hide to fix menu viewHelpers (e.g. breadcrumb)
4141
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= (empty($GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields']) ? '' : ',') . 'nav_hide,shortcut,shortcut_mode';
4242

0 commit comments

Comments
 (0)