[TASK] Deprecated labels should get a developer note
[Packages/TYPO3.CMS.git] / typo3 / sysext / reports / ext_tables.php
index 668c8e2..ccb6595 100644 (file)
@@ -1,10 +1,9 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
+defined('TYPO3_MODE') or die();
+
 if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
-               'TYPO3.CMS.' . $_EXTKEY,
+               'TYPO3.CMS.Reports',
                'system',
                'txreportsM1',
                '',
@@ -12,22 +11,23 @@ if (TYPO3_MODE === 'BE') {
                        'Report' => 'index,detail'
                ), array(
                        'access' => 'admin',
-                       'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/Backend-Module.gif',
-                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf'
+                       'icon' => 'EXT:reports/Resources/Public/Icons/module-reports.png',
+                       'labels' => 'LLL:EXT:reports/Resources/Private/Language/locallang.xlf'
                )
        );
        $statusReport = array(
                'title' => 'LLL:EXT:reports/reports/locallang.xlf:status_report_title',
+               'icon' => 'EXT:reports/Resources/Public/Icons/module-reports.png',
                'description' => 'LLL:EXT:reports/reports/locallang.xlf:status_report_description',
-               'report' => 'TYPO3\\CMS\\Reports\\Report\\Status\\Status'
+               'report' => \TYPO3\CMS\Reports\Report\Status\Status::class
        );
        if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'])) {
                $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array();
        }
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'], $statusReport);
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['typo3'][] = 'TYPO3\\CMS\\Reports\\Report\\Status\\Typo3Status';
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['system'][] = 'TYPO3\\CMS\\Reports\\Report\\Status\\SystemStatus';
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['security'][] = 'TYPO3\\CMS\\Reports\\Report\\Status\\SecurityStatus';
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'TYPO3\\CMS\\Reports\\Report\\Status\\ConfigurationStatus';
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['typo3'][] = \TYPO3\CMS\Reports\Report\Status\Typo3Status::class;
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['system'][] = \TYPO3\CMS\Reports\Report\Status\SystemStatus::class;
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['security'][] = \TYPO3\CMS\Reports\Report\Status\SecurityStatus::class;
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = \TYPO3\CMS\Reports\Report\Status\ConfigurationStatus::class;
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['fal'][] = \TYPO3\CMS\Reports\Report\Status\FalStatus::class;
 }
-?>
\ No newline at end of file