Added feature #14247: Add a concatenator for CSS and JS (thanks to Steffen Gebert)
[Packages/TYPO3.CMS.git] / typo3 / file_list.php
index cd4ebe0..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');
@@ -332,7 +337,7 @@ class SC_file_list {
                                        <div id="typo3-listOptions">
                                ';
 
-                                       // Add "display bigControlPanel" checkbox:      
+                                       // Add "display bigControlPanel" checkbox:
                                $pageContent.=t3lib_BEfunc::getFuncCheck($this->id, 'SET[bigControlPanel]', $this->MOD_SETTINGS['bigControlPanel'], 'file_list.php', '', 'id="bigControlPanel"') . '<label for="bigControlPanel"> ' .$LANG->getLL('bigControlPanel', 1) . '</label><br />';
 
                                        // Add "display thumbnails" checkbox: