[TYPO3-core] RFC #13461: bugfix: wrong image-path returned in class.t3lib_tceforms.php if TYPO3-source is symlinked (backend-redesign)

Stephan N Kellermayr stephan.kellermayr at t3x.at
Sun Mar 28 13:20:50 CEST 2010


just a reminder.

i am about to release a new backend-skin-extension...
if anyone is interested in a redesigned backend (26 different 
CSS-packages and two iconsets), then please take a look at this bugfix.

it is not really complex, but the effect is a colorful and handsome 
TYPO3-life.

screenshot: http://www.t3x.at/typo3-backend-screenshots.jpg

best regards, Stephan



Stephan N Kellermayr schrieb:
> this is an SVN patch request.
> 
> type: bugfix
> 
> bugtracker references:
> http://bugs.typo3.org/view.php?id=13461
> 
> branches:
> trunk, current branch
> 
> problem:
> if an extension is installed in 'typo3conf/ext/' and overrides BE-icons, 
> the result of 't3lib_iconWorks::skinImg' (line:4008 in 
> class.t3lib_tceforms.php) is i.e. 
> "../typo3conf/ext/myextension/icons/gfx/i/pages.gif".
> thats correct, but if we use a symlinked TYPO3-source we get an 
> incorrect path to the imagefile and so we do not get the correct 
> image-dimensions from 'getimagesize' (line:4010)!
> 
> the result is, that dropdown-menus in backend-forms which contains 
> icons, are not rendered correctly...icon is shown under text and text is 
> positioned leftmost because of the missing image-dimensions.
> 
> icon-path without patch:
> '/var/www/typo3-4.3.1/typo3/../typo3conf/ext/myextension/icons/gfx/i/pages.gif' 
> 
> 
> 
> solution:
> if 't3lib_iconWorks::skinImg' returns a filename beginning with '../' 
> resolve the absolute path to the file and then get the correct 
> image-dimensions.
> 
> iconPath with patch:
> '/var/www/typo3-4.3.1/typo3conf/ext/myextension/icons/gfx/i/pages.gif'
> 
> (patch attached: t3lib/class.t3lib_tceforms.php.0013461.diff)
> 
> 
> notes:
> none
> 
> best regards,
> Stephan N Kellermayr
> 


More information about the TYPO3-team-core mailing list