Cleanup #12245: Reports: Cleaned up API for providers in status report
authorFrancois Suter <francois.suter@typo3.org>
Fri, 16 Oct 2009 07:17:28 +0000 (07:17 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Fri, 16 Oct 2009 07:17:28 +0000 (07:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6153 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/install/ext_tables.php
typo3/sysext/reports/ext_tables.php
typo3/sysext/reports/reports/class.tx_reports_reports_status.php

index 7c8a71f..074eb2c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-16  Francois Suter  <francois@typo3.org>
+
+       * Cleanup #12245: Reports: Cleaned up API for providers in status report
+
 2009-10-15  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #11963: MEDIA.renderType in TypoScript is reset
index 9945af8..e6c46ff 100755 (executable)
@@ -4,7 +4,7 @@ if (!defined ('TYPO3_MODE'))    die ('Access denied.');
 if (TYPO3_MODE=='BE') {
        t3lib_extMgm::addModule('tools', 'install', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod/');
 
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['_install'] = 'tx_install_report_InstallStatus';
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['_install'] = 'tx_install_report_InstallStatus';
 }
 
 ?>
\ No newline at end of file
index 9b8a66c..3b114e9 100644 (file)
@@ -18,9 +18,9 @@ if (TYPO3_MODE == 'BE') {
                $statusReport
        );
 
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['system'] = 'tx_reports_reports_status_SystemStatus';
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['security'] = 'tx_reports_reports_status_SecurityStatus';
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['configuration'] = 'tx_reports_reports_status_ConfigurationStatus';
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['system'] = 'tx_reports_reports_status_SystemStatus';
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['security'] = 'tx_reports_reports_status_SecurityStatus';
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'] = 'tx_reports_reports_status_ConfigurationStatus';
 
        $GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['Reports::saveCollapseState'] = 'EXT:reports/reports/class.tx_reports_reports_status.php:tx_reports_reports_Status->saveCollapseState';
 }
index 3bdb4a8..7dc3730 100644 (file)
@@ -76,11 +76,7 @@ class tx_reports_reports_Status implements tx_reports_Report {
         * @return      void
         */
        protected function getStatusProviders() {
-               foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] as $key => $statusProvider) {
-                       if (t3lib_div::inList('title,description,report', $key)) {
-                               continue; // skip (for this report) unneccessary data
-                       }
-
+               foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers'] as $key => $statusProvider) {
                        $statusProviderInstance = t3lib_div::makeInstance($statusProvider);
                        if ($statusProviderInstance instanceof tx_reports_StatusProvider) {
                                $this->statusProviders[$key] = $statusProviderInstance;