Fixed bug #13096: Unable to disable thumbnails with thumbnailsByDefault (Thanks to...
authorSteffen Kamper <info@sk-typo3.de>
Mon, 4 Jan 2010 19:17:32 +0000 (19:17 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 4 Jan 2010 19:17:32 +0000 (19:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6721 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/file_list.php

index 56d4bc1..5531daf 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-01-04  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #13096: Unable to disable thumbnails with thumbnailsByDefault (Thanks to Steffen Gebert)
        * Fixed bug #13118: Toggle empty tree produces JS error (Thanks to Felix Oertel)
        * Fixed bug #12946: t3lib_div::readLLfile use debug output
 
index cdd622b..04c427f 100644 (file)
@@ -237,7 +237,12 @@ class SC_file_list {
                                // Create filelisting object
                        $this->filelist = t3lib_div::makeInstance('fileList');
                        $this->filelist->backPath = $BACK_PATH;
-                       $this->filelist->thumbs = $this->MOD_SETTINGS['displayThumbs']?1:$BE_USER->uc['thumbnailsByDefault'];
+
+                               // if user never opened the list module, set the value for displayThumbs
+                       if (!isset($this->MOD_SETTINGS['displayThumbs'])) {
+                               $this->MOD_SETTINGS['displayThumbs'] = $BE_USER->uc['thumbnailsByDefault'];
+                       }
+                       $this->filelist->thumbs = $this->MOD_SETTINGS['displayThumbs'];
 
                                // Create clipboard object and initialize that
                        $this->filelist->clipObj = t3lib_div::makeInstance('t3lib_clipboard');