Followup to #14465: Make use of the new Sprite API throughout the TYPO3 Core Backend...
authorBenni Mack <benni.mack@typo3.org>
Sun, 30 May 2010 19:47:55 +0000 (19:47 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sun, 30 May 2010 19:47:55 +0000 (19:47 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7766 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.file_list.inc

index f962499..ab5b09f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-30  Benjamin Mack  <benni@typo3.org>
+
+       * Followup to #14465: Make use of the new Sprite API throughout the TYPO3 Core Backend - Missing check for directory type in class.file_list.inc (Thanks to Steffen Ritter)
+
 2010-05-30  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #14530: Missing icons in new BE skin (sprites) v2
index ddf9819..3469384 100644 (file)
@@ -331,7 +331,7 @@ class fileList extends t3lib_recordList {
                                        list($title,$icon,$path) =  $this->dirData($theFile);
 
                                                // The icon with link
-                                       $theIcon = t3lib_iconWorks::getSpriteIconForFile($theFile['fileext'], array('title' => htmlspecialchars($theFile['file'])));
+                                       $theIcon = t3lib_iconWorks::getSpriteIconForFile( ($theFile['type'] == 'dir' ? 'folder' : $theFile['fileext']), array('title' => htmlspecialchars($theFile['file'])));
                                        if ($this->clickMenus) $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($theIcon,$path);
 
                                                //      Preparing and getting the data-array