Skip to content

Commit b3cc834

Browse files
[BUGFIX] Always load sprite icons
Move the addSingleIcons() outside of the TYPO3_MODE == 'BE' to assure that the icons in the BE module are always visible. Also when configuration cache is build by frontend call.
1 parent e6c39e2 commit b3cc834

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ext_tables.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@
7979

8080
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
8181

82+
$iconPath = $GLOBALS['PATHrel_solr'] . 'Resources/Public/Images/Icons/';
83+
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
84+
array(
85+
'ModuleOverview' => $iconPath . 'Search.png',
86+
'ModuleIndexQueue' => $iconPath . 'IndexQueue.png',
87+
'ModuleIndexMaintenance' => $iconPath . 'IndexMaintenance.png',
88+
'ModuleIndexFields' => $iconPath . 'IndexFields.png',
89+
'ModuleSynonyms' => $iconPath . 'Synonyms.png'
90+
),
91+
$_EXTKEY
92+
);
93+
8294
if (TYPO3_MODE == 'BE') {
8395
if (version_compare(TYPO3_version, '6.0.0', '>=')) {
8496
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
@@ -97,18 +109,6 @@
97109
)
98110
);
99111

100-
$iconPath = $GLOBALS['PATHrel_solr'] . 'Resources/Public/Images/Icons/';
101-
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
102-
array(
103-
'ModuleOverview' => $iconPath . 'Search.png',
104-
'ModuleIndexQueue' => $iconPath . 'IndexQueue.png',
105-
'ModuleIndexMaintenance' => $iconPath . 'IndexMaintenance.png',
106-
'ModuleIndexFields' => $iconPath . 'IndexFields.png',
107-
'ModuleSynonyms' => $iconPath . 'Synonyms.png'
108-
),
109-
$_EXTKEY
110-
);
111-
112112
ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule(
113113
'ApacheSolrForTypo3.' . $_EXTKEY,
114114
'Overview',

0 commit comments

Comments
 (0)