Skip to content
Snippets Groups Projects
Commit d9a5dc9b authored by Benjamin Mack's avatar Benjamin Mack Committed by Anja Leichsenring
Browse files

[TASK] Move leftover code from cms to frontend

Leftover code that registers modules
that are located within EXT:frontend should
be moved from EXT:cms to EXT:frontend

Resolves: #65449
Releases: master
Change-Id: Icde91ae85eee74c5fc5492a7263afcd0bc85c82f
Reviewed-on: http://review.typo3.org/37447


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 497e07c5
No related merge requests found
<?php
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:cms/locallang_csh_weblayout.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:cms/locallang_csh_webinfo.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_info',
\TYPO3\CMS\Frontend\Controller\PageInformationController::class,
NULL,
'LLL:EXT:cms/locallang_tca.xlf:mod_tx_cms_webinfo_page'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_info',
\TYPO3\CMS\Frontend\Controller\TranslationStatusController::class,
NULL,
'LLL:EXT:cms/locallang_tca.xlf:mod_tx_cms_webinfo_lang'
);
}
......@@ -3,3 +3,20 @@ defined('TYPO3_MODE') or die();
// Add allowed records to pages
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain,backend_layout');
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:cms/locallang_csh_weblayout.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:cms/locallang_csh_webinfo.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_info',
\TYPO3\CMS\Frontend\Controller\PageInformationController::class,
NULL,
'LLL:EXT:cms/locallang_tca.xlf:mod_tx_cms_webinfo_page'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_info',
\TYPO3\CMS\Frontend\Controller\TranslationStatusController::class,
NULL,
'LLL:EXT:cms/locallang_tca.xlf:mod_tx_cms_webinfo_lang'
);
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment