[!!!][TASK] Cleanup Flash message rendering in FlashMessageQueue
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Template / DocumentTemplate.php
index 403e1f8..1fa46b8 100644 (file)
@@ -1746,11 +1746,7 @@ function jumpToUrl(URL) {
                $flashMessageService = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessageService::class);
                /** @var $defaultFlashMessageQueue \TYPO3\CMS\Core\Messaging\FlashMessageQueue */
                $defaultFlashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();
-               $flashMessages = $defaultFlashMessageQueue->renderFlashMessages();
-               if (!empty($flashMessages)) {
-                       $flashMessages = '<div id="typo3-messages">' . $flashMessages . '</div>';
-               }
-               return $flashMessages;
+               return $defaultFlashMessageQueue->renderFlashMessages();
        }
 
        /**