[TASK] Simplify sprite manager
[Packages/TYPO3.CMS.git] / typo3 / classes / Bootstrap.php
index b798a5e..5b0f6cc 100644 (file)
@@ -941,15 +941,12 @@ class Typo3_Bootstrap {
        }
 
        /**
-        * Initialize sprite manager global
+        * Initialize sprite manager
         *
-        * @param boolean $allowRegeneration
         * @return Typo3_Bootstrap
         */
-       public function initializeSpriteManager($allowRegeneration = TRUE) {
-                       /** @var $spriteManager t3lib_SpriteManager */
-               $GLOBALS['spriteManager'] = t3lib_div::makeInstance('t3lib_SpriteManager', $allowRegeneration);
-               $GLOBALS['spriteManager']->loadCacheFile();
+       public function initializeSpriteManager() {
+               t3lib_SpriteManager::initialize();
 
                return $this;
        }