Fixed bug #7354: Filelist titles length was fixed to 30 characters, now uses value...
authorBenni Mack <benni.mack@typo3.org>
Mon, 4 Feb 2008 13:15:34 +0000 (13:15 +0000)
committerBenni Mack <benni.mack@typo3.org>
Mon, 4 Feb 2008 13:15:34 +0000 (13:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3053 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.file_list.inc

index ba87578..e6eb247 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-04  Benjamin Mack  <mack@xnos.org>
+
+       * Fixed bug #7354: Filelist titles length was fixed to 30 characters, now uses value from user setup (Thanks to Stefano Cecere)
+
 2008-02-04  Michael Stucki  <michael@typo3.org>
 
        * Fixed bug #7295: sysext/dbal/: Uninitialized variable in ->handler_getFromTableList() (Patch by Oliver Klee)
index c78dbdd..cb2a26e 100755 (executable)
@@ -119,6 +119,8 @@ class fileList extends t3lib_recordList {
                $this->sortRev=$sortRev;
                $this->firstElementNumber=$pointer;
                $this->clipBoard = $clipBoard;
+                       // setting the maximum length of the filenames to the user's settings or minimum 30 (= $this->fixedL)
+               $this->fixedL = max($this->fixedL, $GLOBALS['BE_USER']->uc['titleLen']); 
 
                if (!$GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails'])  {
                        $this->thumbScript='gfx/notfound_thumb.gif';