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

Stephan N Kellermayr stephan.kellermayr at t3x.at
Thu Mar 11 11:55:56 CET 2010


this is an SVN patch request.

type: bugfix

bugtracker references:
http://bugs.typo3.org/view.php?id=13487

branches:
trunk, current branch

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)

notes:
none

best regards,
Stephan N Kellermayr


-----------------------------------------------------------------
this message was sent using horde-webmail, hosted by sonority.eu
http://www.sonority.eu/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: class.t3lib_iconworks.php.0013487.diff
Type: application/x-php
Size: 1095 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100311/92105955/attachment.bin>


More information about the TYPO3-team-core mailing list