Fixed bug #15098: TS Errors should be shown with flash messages (Thanks to Georg...
authorSteffen Kamper <info@sk-typo3.de>
Tue, 13 Jul 2010 14:52:09 +0000 (14:52 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 13 Jul 2010 14:52:09 +0000 (14:52 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8172 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/tstemplate_objbrowser/class.tx_tstemplateobjbrowser.php

index a1f4a1e..4f9aa58 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-07-13  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #15098: TS Errors should be shown with flash messages (Thanks to Georg Ringer)
        * Fixed bug #14855: Big Buttons in Page Module miss padding (Thanks to Georg Ringer)
 
 2010-07-13  Xavier Perseguers  <typo3@perseguers.ch>
index 158858a..4c836cb 100644 (file)
@@ -465,7 +465,14 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                                        $errMsg[]=($inf[1]).": &nbsp; &nbsp;".$inf[0];
                                }
                                $theOutput .= $this->pObj->doc->spacer(10);
-                               $theOutput .= $this->pObj->doc->section($GLOBALS['TBE_TEMPLATE']->rfw($GLOBALS['LANG']->getLL('errorsWarnings')), implode($errMsg, "<br />"), 0, 1, 0, 1);
+
+                               $flashMessage = t3lib_div::makeInstance(
+                                               't3lib_FlashMessage',
+                                               implode($errMsg, '<br />'),
+                                               $GLOBALS['LANG']->getLL('errorsWarnings'),
+                                               t3lib_FlashMessage::ERROR
+                                       );
+                               $theOutput .= $flashMessage->render();
                        }