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

ChangeLog
typo3/class.db_list.inc

index 1bde61c..65dad0b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-14  Steffen Kamper  <info@sk-typo3.de> 
+
+       * Fixed bug #8787: titles length in list module (thanks to Stefano Cecere)
+       
 2009-01-14  Jeff Segars <jeff@webempoweredchurch.org>
 
        * Fixed bug #10064: config.admPanel has no effect (thanks to Ralf Hettinger)
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>';
                        }