[TASK] Move leftover code from cms to frontend 47/37447/2
authorBenjamin Mack <benni@typo3.org>
Mon, 2 Mar 2015 10:30:56 +0000 (11:30 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 2 Mar 2015 10:48:58 +0000 (11:48 +0100)
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 [deleted file]
typo3/sysext/frontend/ext_tables.php

diff --git a/typo3/sysext/cms/ext_tables.php b/typo3/sysext/cms/ext_tables.php
deleted file mode 100644 (file)
index 0c80c66..0000000
+++ /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'
-       );
-}
index bb7b47f..638c91a 100644 (file)
@@ -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'
+       );
+}