Fixed bug #6773: Allow br in flexform labels
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 20 Nov 2007 09:28:23 +0000 (09:28 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 20 Nov 2007 09:28:23 +0000 (09:28 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2740 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php

index 455f18f..4e978ee 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-11-20  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Restored typo3/sysext/lang/locallang_mod_doc.xml because it was zero length and broke translations
+       * Fixed bug #6773: Allow br in flexform labels
 
 2007-11-20  Oliver Hader  <oh@inpublica.de>
 
index 27daadb..6c8a2be 100755 (executable)
@@ -2604,8 +2604,9 @@ class t3lib_TCEforms      {
                                                                }
 
                                                                        // Put row together
+                                                                       // possible linebreaks in the label through xml: \n => <br/>, usage of nl2br() not possible, so it's done through str_replace
                                                                $tRows[]='<div>
-                                                                       <div class="bgColor5">'.($vDEFkey=='vDEF' ? '' : $this->getLanguageIcon($table,$row,$vDEFkey)).$theTitle.'</div>
+                                                                       <div class="bgColor5">'.($vDEFkey=='vDEF' ? '' : $this->getLanguageIcon($table,$row,$vDEFkey)).str_replace('\n', '<br />', $theTitle).'</div>
                                                                        <div class="bgColor4">'.$theFormEl.$defInfo.$this->renderVDEFDiff($editData[$key],$vDEFkey).'</div>
                                                                </div>';
                                                        }