Skip to content
Snippets Groups Projects
Commit 94a9884d authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[BUGFIX] fix missing backend module icon for TYPO3 10

parent 05c81aa0
No related branches found
No related tags found
No related merge requests found
......@@ -75,5 +75,18 @@ call_user_func(
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['languagevisibility']['recordElementSupportedTables']['tx_sgjobs_domain_model_job'] = [];
// register icons for TYPO3 10 compatibility
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '11.0.0', '<')) {
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
$iconRegistry->registerIcon(
'extension-sg_jobs-module',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:sg_jobs/Resources/Public/Icons/module-sgjobs.svg']
);
}
}
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment