[TYPO3-core] RFC #13487: bugfix: no alternative icon returned from 'getIcon' in class.t3lib_iconworks.php (backend-redesign)

Susanne Moog typo3 at susannemoog.de
Sun Apr 4 13:53:21 CEST 2010


Hi,

On 11.03.2010 11:55, Stephan N Kellermayr wrote:
> this is an SVN patch request.
> 
> problem:
> the function 'getIcon' in 't3lib/class.t3lib_iconworks.php' 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 alternative icon,
> because there is no check to the alternative path given by
> $GLOBALS['TBE_STYLES']['skinImgAutoCfg']['absDir'] which is used by some
> skin-extension (ie t3skin or t3xskin).
> in fact there is no possibility to improve the backend with replacements
> for missing icons at this time.
> 
> solution:
> just add an additional filecheck in function 'getIcon'....that would be
> fine for backend-redesigner and other people who wants to improve the
> default icon-set.
> (patch attached: t3lib/class.t3lib_iconworks.php.0013487.diff)

do you have an example for a missing icon that is replaced by your skin
extension so that it's easy for me to test this?

Best regards,

Susanne


More information about the TYPO3-team-core mailing list