Skip to content

Commit

Permalink
[BUGFIX] Use proper navigationComponentId for 9+
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Jan 16, 2018
1 parent b5c8780 commit 81d6b2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
$configuration = \GeorgRinger\News\Utility\EmConfiguration::getSettings();

if (TYPO3_MODE === 'BE') {
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 9000000) {
$isVersion9Up = \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 9000000;
if ($isVersion9Up) {
$mappings = ['common', 'general', 'mod_web_list', 'tca'];
foreach ($mappings as $maping) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_' . $maping . '.xlf'][] = 'EXT:lang/Resources/Private/Language/locallang_' . $maping . '.xlf';
Expand Down Expand Up @@ -71,7 +72,7 @@
'access' => 'user,group',
'icon' => 'EXT:news/Resources/Public/Icons/module_administration.svg',
'labels' => 'LLL:EXT:news/Resources/Private/Language/locallang_modadministration.xlf',
'navigationComponentId' => $configuration->getHidePageTreeForAdministrationModule() ? '' : 'typo3-pagetree'
'navigationComponentId' => $configuration->getHidePageTreeForAdministrationModule() ? '' : ($isVersion9Up ? 'TYPO3/CMS/Backend/PageTree/PageTreeElement' : 'typo3-pagetree')
]
);
}
Expand Down

0 comments on commit 81d6b2f

Please sign in to comment.