[TASK] Remove hardcoded TypoScript setup
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'FE' && !isset($_REQUEST['eID'])) {
5 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
6 'TYPO3\\CMS\\Core\\Resource\\Index\\MetaDataRepository',
7 'recordPostRetrieval',
8 'TYPO3\\CMS\\Frontend\\Aspect\\FileMetadataOverlayAspect',
9 'languageAndWorkspaceOverlay'
10 );
11 }
12
13 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
14 'frontend',
15 'setup',
16 'config.extTarget = _top'
17 . LF . 'config.uniqueLinkVars = 1'
18 );