[BUGFIX] Introduce failsafe view in install tool
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Controller / Action / Common / InstallToolDisabledAction.php
index b9d5009..b72334e 100644 (file)
@@ -37,6 +37,13 @@ class InstallToolDisabledAction extends Action\AbstractAction {
         * @return string Rendered content
         */
        protected function executeAction() {
-               return $this->view->render();
+               /** @var \TYPO3\CMS\Install\SystemEnvironment\Check $statusCheck */
+               $statusCheck = $this->objectManager->get('TYPO3\\CMS\\Install\\SystemEnvironment\\Check');
+               $statusObjects = $statusCheck->getStatus();
+               /** @var \TYPO3\CMS\Install\Status\StatusUtility $statusUtility */
+               $statusUtility = $this->objectManager->get('TYPO3\\CMS\\Install\\Status\\StatusUtility');
+               $alerts = $statusUtility->filterBySeverity($statusObjects, 'alert');
+               $this->view->assign('alerts', $alerts);
+               return $this->view->render(!empty($alerts));
        }
 }