Fixed bug #16977: show_item shows wrong icon for files (Thanks to Georg Ringer)
authorSteffen Gebert <steffen.gebert@typo3.org>
Wed, 12 Jan 2011 17:53:20 +0000 (17:53 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Wed, 12 Jan 2011 17:53:20 +0000 (17:53 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10044 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/show_item.php

index 0f3075e..bfd3970 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@
 2011-01-12  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #16939: ExtJS Tooltip / CSH styling
+       * Fixed bug #16977: show_item shows wrong icon for files (Thanks to Georg Ringer)
 
 2011-01-12  Benjamin Mack  <benjamin.mack@typo3.org>
 
index 92714ff..cdb814a 100644 (file)
@@ -338,9 +338,7 @@ class SC_show_item {
                $code = '';
 
                        // Setting header:
-               $icon = t3lib_BEfunc::getFileIcon($ext);
-               $url = 'gfx/fileicons/'.$icon;
-               $fileName = '<img src="'.$url.'" width="18" height="16" align="top" alt="" /><strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.file', 1).':</strong> '.$fI['file'];
+               $fileName = t3lib_iconWorks::getSpriteIconForFile($ext) . '<strong>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.file', TRUE) . ':</strong> ' . $fI['file'];
                if (t3lib_div::isFirstPartOfStr($this->file,PATH_site)) {
                        $code.= '<a href="../'.substr($this->file,strlen(PATH_site)).'" target="_blank">'.$fileName.'</a>';
                } else {