Fixed bug #8787: titles length in list module (thanks to Stefano Cecere)
authorSteffen Kamper <info@sk-typo3.de>
Thu, 15 Jan 2009 20:40:54 +0000 (20:40 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Thu, 15 Jan 2009 20:40:54 +0000 (20:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4723 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list.inc

index b23ac35..de2aaff 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-15  Steffen Kamper  <info@sk-typo3.de> 
+
+       * Fixed bug #8787: titles length in list module (thanks to Stefano Cecere)
+       
 2009-01-14  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #10140: htmlArea RTE: Alignment of td's and th's in out-of-the-box installation
index aeb9362..44a47bd 100755 (executable)
@@ -563,7 +563,7 @@ class recordList extends t3lib_recordList {
                if (!strcmp($code,'')) {
                        $code = '<i>['.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title',1).']</i> - '.htmlspecialchars(t3lib_div::fixed_lgd_cs(t3lib_BEfunc::getRecordTitle($table,$row),$GLOBALS['BE_USER']->uc['titleLen']));
                } else {
-                       $code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code,$this->fixedL));
+                       $code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code, t3lib_div::intval_positive($GLOBALS['BE_USER']->uc['titleLen']) ? $GLOBALS['BE_USER']->uc['titleLen'] : $this->fixedL));
                        if ($code != htmlspecialchars($origCode)) {
                                $code = '<span title="'.htmlspecialchars($origCode).'">'.$code.'</span>';
                        }