[FEATURE] Allow .ts file extension for static typoscript templates
[Packages/TYPO3.CMS.git] / t3lib / spritemanager / class.t3lib_spritemanager_spritebuildinghandler.php
index dfde290..973fe37 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************
  *  Copyright notice
  *
- *  (c) 2010 Steffen Ritter <info@steffen-ritter.net>
+ *  (c) 2010-2011 Steffen Ritter <info@steffen-ritter.net>
  *  All rights reserved
  *
  *  This script is part of the TYPO3 project. The TYPO3 project is
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
 
-
 /**
+ * Sprite build handler
  *
- * @author     Steffen Ritter <info@steffen-ritter.net>
+ * @author Steffen Ritter <info@steffen-ritter.net>
  * @package TYPO3
  * @subpackage t3lib
  */
@@ -64,29 +64,10 @@ class t3lib_spritemanager_SpriteBuildingHandler extends t3lib_spritemanager_Abst
 
                $generatorResponse = $this->generatorInstance->generateSpriteFromArray($iconsToProcess);
 
-               if (!is_dir(PATH_site . t3lib_SpriteManager::$tempPath . 'ie6')) {
-                       t3lib_div::mkdir(PATH_site . t3lib_SpriteManager::$tempPath . 'ie6');
-               }
-
-               t3lib_div::upload_copy_move(
-                       $generatorResponse['spriteGifImage'],
-                       t3lib_div::dirname($generatorResponse['spriteGifImage']) . '/ie6/' . basename($generatorResponse['spriteGifImage'])
-               );
-               unlink($generatorResponse['spriteGifImage']);
-
-               t3lib_div::upload_copy_move(
-                       $generatorResponse['cssGif'],
-                       t3lib_div::dirname($generatorResponse['cssGif']) . '/ie6/' . basename($generatorResponse['cssGif'])
-               );
-               unlink($generatorResponse['cssGif']);
-
                $this->iconNames = array_merge($this->iconNames, $generatorResponse['iconNames']);
 
                parent::generate();
        }
 }
 
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/spritemanager/class.t3lib_spritemanager_autogeneratinghandler.php']) {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/spritemanager/class.t3lib_spritemanager_autogeneratinghandler.php']);
-}
-?>
+?>
\ No newline at end of file