[TASK] Replace JavaScriptEncoder with json_encode()
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_localconf.php
index a683ba6..1484a69 100644 (file)
@@ -3,7 +3,7 @@ if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
 
        die('Access denied.');
 }
 
-if (TYPO3_MODE === 'BE') {
+if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
                'TYPO3\\CMS\\Core\\Resource\\ResourceFactory',
                \TYPO3\CMS\Core\Resource\ResourceFactory::SIGNAL_PostProcessStorage,
        \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
                'TYPO3\\CMS\\Core\\Resource\\ResourceFactory',
                \TYPO3\CMS\Core\Resource\ResourceFactory::SIGNAL_PostProcessStorage,
@@ -12,4 +12,9 @@ if (TYPO3_MODE === 'BE') {
        );
 }
 
        );
 }
 
-?>
\ No newline at end of file
+\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
+       'TYPO3\\CMS\\Core\\Resource\\ResourceStorage',
+       \TYPO3\CMS\Core\Resource\ResourceStorage::SIGNAL_PostFileDelete,
+       'TYPO3\\CMS\\Core\\Resource\\Processing\\FileDeletionAspect',
+       'removeFromRepository'
+);
\ No newline at end of file