Fixed bug #15230: Bug/Feature: Core only is able to load one specific IE6 CSS file...
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3skin / pngfix / class.tx_templatehook.php
index 2956b18..61c0eb1 100644 (file)
@@ -9,7 +9,17 @@ class tx_templatehook {
                && strpos($userAgent, 'Opera') === false
                && strpos($userAgent, 'MSIE 7') === false) {
                                //make sure we match IE6 but not Opera or IE7
-                       $params['pageRenderer']->addCssFile($parent->backPath . 'sysext/t3skin/stylesheets/ie6/z_t3-icons-gifSprites.css');
+                       $files = t3lib_div::getFilesInDir(PATH_typo3 . 'sysext/t3skin/stylesheets/ie6', 'css', 0, 1);
+                       foreach($files as $fileName) {
+                               $params['pageRenderer']->addCssFile($parent->backPath . 'sysext/t3skin/stylesheets/ie6/' . $fileName);
+                       }
+
+                               // load files of spriteGenerator for ie6
+                       $files = t3lib_div::getFilesInDir(PATH_site . t3lib_SpriteManager::$tempPath . 'ie6/', 'css', 0, 1);
+                       foreach($files as $fileName) {
+                               $params['pageRenderer']->addCssFile($parent->backPath . '../' . t3lib_SpriteManager::$tempPath . 'ie6/' . $fileName);
+                       }
+
                }
        }
 }