#22095no alternative icon returned from 'getIcon' in class.t3lib_iconworks.php (backend-redesign)
Description
current situation:
the function ‘getIcon’ checks if an icon with the current states (hidden/timing/futuretiming/protected…) is available and returns this.
but if we are using an extension which overrides some icons AND provides additional icons which are NOT available in the source (i.e.: for some states which would be normally displayed with ‘icon_not_found.gif’ or the appendix ‘*__x.gif’) it does not return the new icon, because there is no check to the alternative path given by $GLOBALS[‘TBE_STYLES’][‘skinImgAutoCfg’][‘absDir’]
in fact there is no possibility to improve the backend with replacements for missing icons at this time.
…thats why the following modification would be fine for backend-redesigner and other people who wants to improve the default icon-set:
replace line 251:
if (@is_file(dirname($absfile).’/’.$iconFileName_stateTagged)) { // Look for [iconname]_xxxx.[ext]
with this line:
if (is_file(dirname($absfile).'/'.$iconFileName_stateTagged) || is_file($GLOBALS[‘TBE_STYLES’][‘skinImgAutoCfg’][‘absDir’].’/’.dirname($iconfile).’/’.$iconFileName_stateTagged)) { // Look for [iconname]_xxxx.[ext]
this will also check the location of the alternative icons added by an extension and finally returns the new icon.
(issue imported from #M13487)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.