From cccc6a3bf9bfb52d3c693b4f4ff9bdbe22a54435 Mon Sep 17 00:00:00 2001 From: Benni Mack Date: Fri, 28 Apr 2017 11:33:23 +0200 Subject: [PATCH] [TASK] Streamline ext_localconf.php and ext_tables.php The goal is to minimize TYPO3_MODE usage in ext_localconf and ext_tables and provide a clear process for extension developers where to put what. This extension streamlines the whole usage within all system extensions, and documents the expected behaviour of all third-party extensions, which will also be included in docs.typo3.org. Resolves: #82692 Releases: master Change-Id: Id83ff0dfc6198564443f2f42e273bcd4f6f25e3e Reviewed-on: https://review.typo3.org/52533 Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn Tested-by: TYPO3com Reviewed-by: Susanne Moog Tested-by: Susanne Moog --- ext_localconf.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ext_localconf.php b/ext_localconf.php index b356fa8..c531b71 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -4,11 +4,9 @@ defined('TYPO3_MODE') or die(); // Register the edit panel view. $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']['edit'] = \TYPO3\CMS\Feedit\FrontendEditPanel::class; -if (TYPO3_MODE === 'FE') { - \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect( - \TYPO3\CMS\Backend\Controller\EditDocumentController::class, - 'initAfter', - \TYPO3\CMS\Feedit\FrontendEditAssetLoader::class, - 'attachAssets' - ); -} +\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect( + \TYPO3\CMS\Backend\Controller\EditDocumentController::class, + 'initAfter', + \TYPO3\CMS\Feedit\FrontendEditAssetLoader::class, + 'attachAssets' +);