Fixed bug #10581: Use $this->fixedL for list title length
authorIngo Renner <ingo.renner@typo3.org>
Tue, 3 Mar 2009 19:18:52 +0000 (19:18 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Tue, 3 Mar 2009 19:18:52 +0000 (19:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5117 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list.inc

index afc6046..c7e3858 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Fixed bug #9779: t3lib_div::trimExplode limit parameter leads to wrong result with non-empty requirement
        * Fixed bug #10497: Mark t3lib_div::makeInstanceClassName() as deprecated
+       * Fixed bug #10581: Use $this->fixedL for list title length
 
 2009-03-03  Michael Stucki  <michael@typo3.org>
 
index c13982e..a2f37a0 100755 (executable)
@@ -578,7 +578,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, t3lib_div::intval_positive($GLOBALS['BE_USER']->uc['titleLen']) ? $GLOBALS['BE_USER']->uc['titleLen'] : $this->fixedL));
+                       $code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code, $this->fixedL));
                        if ($code != htmlspecialchars($origCode)) {
                                $code = '<span title="'.htmlspecialchars($origCode).'">'.$code.'</span>';
                        }