From d9a5dc9b654579098b692dce849bfc9108b90cca Mon Sep 17 00:00:00 2001 From: Benjamin Mack <benni@typo3.org> Date: Mon, 2 Mar 2015 11:30:56 +0100 Subject: [PATCH] [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: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> --- typo3/sysext/cms/ext_tables.php | 19 ------------------- typo3/sysext/frontend/ext_tables.php | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 19 deletions(-) delete mode 100644 typo3/sysext/cms/ext_tables.php diff --git a/typo3/sysext/cms/ext_tables.php b/typo3/sysext/cms/ext_tables.php deleted file mode 100644 index 0c80c66775f2..000000000000 --- a/typo3/sysext/cms/ext_tables.php +++ /dev/null @@ -1,19 +0,0 @@ -<?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' - ); -} diff --git a/typo3/sysext/frontend/ext_tables.php b/typo3/sysext/frontend/ext_tables.php index bb7b47f2ff54..638c91a52fdd 100644 --- a/typo3/sysext/frontend/ext_tables.php +++ b/typo3/sysext/frontend/ext_tables.php @@ -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' + ); +} -- GitLab