[BUGFIX] Scheduler: Removed call to deprecated method render()
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / Classes / Controller / SchedulerModuleController.php
index 8000d4e..f48ec36 100644 (file)
@@ -1192,9 +1192,12 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                     } else {
                         // The task object is not valid
                         // Prepare to issue an error
-                        /** @var $flashMessage FlashMessage */
-                        $flashMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, sprintf($this->getLanguageService()->getLL('msg.invalidTaskClass'), $class), '', FlashMessage::ERROR);
-                        $executionStatusOutput = $flashMessage->render();
+                        $executionStatusOutput = '<span class="label label-danger">'
+                            . htmlspecialchars(sprintf(
+                                $this->getLanguageService()->getLL('msg.invalidTaskClass'),
+                                $class
+                            ))
+                            . '</span>';
                         $table[] =
                             '<tr>'
                                 . '<td>' . $startExecutionElement . '</td>'