Fixed bug #65: Thumbnails in Element Browser are only displayed if fileSuffix is...
authorOliver Hader <oliver.hader@typo3.org>
Tue, 18 Sep 2007 19:30:13 +0000 (19:30 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 18 Sep 2007 19:30:13 +0000 (19:30 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2514 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.browse_links.php

index 6509281..d247afa 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-09-18  Oliver Hader  <oh@inpublica.de>
+
+       * (minor) Fixed bug #65: Thumbnails in Element Browser are only displayed if fileSuffix is lowercase
+
 2007-09-18     Bernhard Kraft  <kraftb@kraftb.at>
 
        * Hide empty dynTabs in tceforms
index bd32af1..c81752c 100755 (executable)
@@ -1898,7 +1898,7 @@ class browse_links {
                                $fI=pathinfo($filepath);
 
                                        // Thumbnail/size generation:
-                               if (t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],$fI['extension']) && !$noThumbs)      {
+                               if (t3lib_div::inList(strtolower($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']),strtolower($fI['extension'])) && !$noThumbs)      {
                                        $imgInfo = $imgObj->getImageDimensions($filepath);
                                        $pDim = $imgInfo[0].'x'.$imgInfo[1].' pixels';
                                        $clickIcon = t3lib_BEfunc::getThumbNail($BACK_PATH.'thumbs.php',$filepath,'hspace="5" vspace="5" border="1"');