[BUGFIX] Call to undefined method ..\Reports\Status::getSystemStatus()
authorPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 21 Sep 2012 21:32:14 +0000 (23:32 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 24 Sep 2012 20:40:11 +0000 (22:40 +0200)
Change-Id: I3b045a341bcc8db8abc0dbc9f3305b1123f85aae
Fixes: #41221
Releases: 6.0
Reviewed-on: http://review.typo3.org/14888
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/reports/Classes/Task/SystemStatusUpdateTask.php

index 27e8c36..792826d 100644 (file)
@@ -48,8 +48,10 @@ class SystemStatusUpdateTask extends \TYPO3\CMS\Scheduler\Task {
         * @see typo3/sysext/scheduler/tx_scheduler_Task::execute()
         */
        public function execute() {
+               /** @var $registry \TYPO3\CMS\Core\Registry */
                $registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Registry');
-               $statusReport = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Reports\\Status');
+               /** @var $statusReport \TYPO3\CMS\Reports\Report\Status\Status */
+               $statusReport = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Reports\\Report\\Status\\Status');
                $systemStatus = $statusReport->getSystemStatus();
                $highestSeverity = $statusReport->getHighestSeverity($systemStatus);
                $registry->set('tx_reports', 'status.highestSeverity', $highestSeverity);
@@ -113,4 +115,4 @@ class SystemStatusUpdateTask extends \TYPO3\CMS\Scheduler\Task {
 }
 
 
-?>
\ No newline at end of file
+?>