Skip to content

Commit

Permalink
[BUGFIX] Move ExtensionManagementUtility::addUserTSConfig (#193) (#196)
Browse files Browse the repository at this point in the history
I just had a talk with lolli,`ExtensionManagementUtility::addUserTSConfig` may only be called int the ext_localconf.php, see also the comment for that method.

---------

Co-authored-by: Lina Wolf <[email protected]>
  • Loading branch information
brotkrueml and linawolf authored Aug 4, 2023
1 parent e2d4b5f commit a49fc96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,9 @@
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']
['EXT:frontend/Resources/Private/Language/locallang_tca.xlf'][] =
'EXT:examples/Resources/Private/Language/de.custom.xlf';

// Add default user tsconfig
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
"@import 'EXT:examples/Configuration/TsConfig/User/*.tsconfig'"
);
})();
5 changes: 0 additions & 5 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,4 @@
'allowedTables' => '*',
]
);

// Add custom doktype to the page tree toolbar
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
"@import 'EXT:examples/Configuration/TsConfig/User/*.tsconfig'"
);
})();

0 comments on commit a49fc96

Please sign in to comment.