[CLEANUP] SpriteBuildingHandler uses deprecated SpriteGenerator API 24/25524/3
authorMarkus Klein <klein.t3@mfc-linz.at>
Wed, 20 Nov 2013 00:19:42 +0000 (01:19 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Wed, 20 Nov 2013 00:42:04 +0000 (01:42 +0100)
Resolves: #53778
Releases: 6.2
Change-Id: Ife895d07c67e519553248a62917de921c6e31a76
Reviewed-on: https://review.typo3.org/25524
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/backend/Classes/Sprite/SpriteBuildingHandler.php

index 16d7fd5..c0b73ae 100644 (file)
@@ -27,7 +27,6 @@ namespace TYPO3\CMS\Backend\Sprite;
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
 
-use TYPO3\CMS\Backend\Sprite\SpriteManager;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
@@ -35,10 +34,10 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  *
  * @author Steffen Ritter <info@steffen-ritter.net>
  */
-class SpriteBuildingHandler extends \TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler {
+class SpriteBuildingHandler extends AbstractSpriteHandler {
 
        /**
-        * @var \TYPO3\CMS\Backend\Sprite\SpriteGenerator
+        * @var SpriteGenerator
         */
        protected $generatorInstance = NULL;
 
@@ -50,7 +49,11 @@ class SpriteBuildingHandler extends \TYPO3\CMS\Backend\Sprite\AbstractSpriteHand
         */
        public function generate() {
                $this->generatorInstance = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Sprite\\SpriteGenerator', 'GeneratorHandler');
-               $this->generatorInstance->setOmmitSpriteNameInIconName(TRUE)->setIncludeTimestampInCSS(TRUE)->setSpriteFolder(SpriteManager::$tempPath)->setCSSFolder(SpriteManager::$tempPath);
+               $this->generatorInstance
+                       ->setOmitSpriteNameInIconName(TRUE)
+                       ->setIncludeTimestampInCSS(TRUE)
+                       ->setSpriteFolder(SpriteManager::$tempPath)
+                       ->setCSSFolder(SpriteManager::$tempPath);
                $iconsToProcess = array_merge((array) $GLOBALS['TBE_STYLES']['spritemanager']['singleIcons'], $this->collectTcaSpriteIcons());
                foreach ($iconsToProcess as $iconName => $iconFile) {
                        $iconsToProcess[$iconName] = GeneralUtility::resolveBackPath('typo3/' . $iconFile);