Follow-up to #11855: Use flash message API instead of custom markup for highlighting...
authorFrancois Suter <francois.suter@typo3.org>
Thu, 1 Oct 2009 12:58:09 +0000 (12:58 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Thu, 1 Oct 2009 12:58:09 +0000 (12:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6090 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/class.em_index.php

index e2bc031..da5171d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-29  Francois Suter  <francois@typo3.org>
+
+       * Follow-up to #11855: Use flash message API instead of custom markup for highlighting security link
+
 2009-10-01  Steffen Kamper  <info@sk-typo3.de>
 
        * Follow-up to #12089: Cleanup: unescaped &
index e14fa53..dd4a3e1 100644 (file)
@@ -382,12 +382,16 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
                );
 
                $this->privacyNotice = $GLOBALS['LANG']->getLL('privacy_notice');
-               $this->securityHint = '<div class="typo3-message message-information">
-                       <strong>' . $GLOBALS['LANG']->getLL('security_header') . '</strong><br />' .
-                       sprintf($GLOBALS['LANG']->getLL('security_descr'),
+               $securityMessage = sprintf($GLOBALS['LANG']->getLL('security_descr'),
                                '<a href="http://typo3.org/teams/security/" target="_blank">', '</a>'
                        );
-               $this->securityHint .= '</div>';
+               $flashMessage = t3lib_div::makeInstance(
+                       't3lib_FlashMessage',
+                       $securityMessage,
+                       $GLOBALS['LANG']->getLL('security_header'),
+                       t3lib_FlashMessage::INFO
+               );
+               $this->securityHint = $flashMessage->render();
 
                $this->excludeForPackaging = $GLOBALS['TYPO3_CONF_VARS']['EXT']['excludeForPackaging'];