[BUGFIX] Sprite icons not shown 46/30046/2
authorFrans Saris <franssaris@gmail.com>
Tue, 13 May 2014 11:56:40 +0000 (13:56 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Tue, 13 May 2014 16:00:31 +0000 (18:00 +0200)
If first hit after clearing cache was not in BE context
some icons are not part of the sprite css.

This patch makes sure that these icons are registered
in every context.

Releases: 6.2
Resolves: #58758
Change-Id: I4c44c0f241f096c15e8257975b665ec89b60d2e4
Reviewed-on: https://review.typo3.org/30046
Reviewed-by: Fabien Udriot
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/extensionmanager/ext_tables.php
typo3/sysext/scheduler/ext_tables.php

index 3727ab8..9b4e810 100644 (file)
@@ -27,12 +27,12 @@ if (TYPO3_MODE === 'BE') {
        // Register extension status report system
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] =
                'TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus';
-
-       // Register specific icon for update script button
-       \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
-               array(
-                       'update-script' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/ExtensionUpdateScript.png'
-               ),
-               $_EXTKEY
-       );
 }
+
+// Register specific icon for update script button
+\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
+       array(
+               'update-script' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/ExtensionUpdateScript.png'
+       ),
+       $_EXTKEY
+);
index 6f7c418..740ba33 100644 (file)
@@ -16,13 +16,12 @@ if (TYPO3_MODE === 'BE') {
                '_MOD_system_txschedulerM1',
                'EXT:' . $_EXTKEY . '/mod1/locallang_csh_scheduler.xlf'
        );
-
-       // Register specific icon for run task button
-       \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
-               array(
-                       'run-task' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/RunTask.png'
-               ),
-               $_EXTKEY
-       );
-
 }
+
+// Register specific icon for run task button
+\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
+       array(
+               'run-task' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/RunTask.png'
+       ),
+       $_EXTKEY
+);