[BUGFIX] Do not scroll on top using actions on multipleSideBySide
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index e6c46ff..58fa1db
@@ -1,10 +1,29 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE=='BE') {
-       t3lib_extMgm::addModule('tools', 'install', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod/');
+if (TYPO3_MODE === 'BE') {
+    // Register report module additions
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['typo3'][] = \TYPO3\CMS\Install\Report\InstallStatusReport::class;
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['security'][] = \TYPO3\CMS\Install\Report\SecurityStatusReport::class;
 
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['_install'] = 'tx_install_report_InstallStatus';
-}
+    // Only add the environment status report if not in CLI mode
+    if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) {
+        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['system'][] = \TYPO3\CMS\Install\Report\EnvironmentStatusReport::class;
+    }
 
-?>
\ No newline at end of file
+    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+        'system',
+        'extinstall',
+        '',
+        '',
+        array(
+            'routeTarget' => \TYPO3\CMS\Install\Controller\BackendModuleController::class . '::index',
+            'access' => 'admin',
+            'name' => 'system_extinstall',
+            'icon' => 'EXT:install/Resources/Public/Icons/module-install.svg',
+            'labels' => array(
+                'll_ref' => 'LLL:EXT:install/Resources/Private/Language/BackendModule.xlf',
+            ),
+        )
+    );
+}