[TYPO3-core] RFC: #15543 Bugfix : PHP Warning in t3lib_spritemanager
Sven Juergens
t3 at blue-side.de
Tue Aug 24 09:50:32 CEST 2010
Hi,
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=15543
Branches:
trunk, 4.4
Problem:
PHP Warning if you use your own Extension Sprite CSS
Steps to reproduce:
try to add your own sprite and use this example from
http://blog.tolleiv.de/2010/07/typo3-4-4-sprites-in-your-extension/
in your extTables.php
$icons = array(
'extensions-myextension-icon1',
'extensions-myextension-icon2'
);
t3lib_SpriteManager::addIconSprite(
$icons,
t3lib_extMgm::siteRelPath('myextension') . 'myextension_sprite.css'
);
(myextension should be an existing extension)
Then clear cache and got the PHP Warning
PHP Warning: array_merge() [function.array-merge]: Argument #1 is not an
array in ".."/t3lib/class.t3lib_spritemanager.php line 211
Solution:
use $GLOBALS['TBE_STYLES']['spritemanager']['spriteIconsAvailable'] as array
Best regards,
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15543.diff
Type: application/applefile
Size: 640 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100824/0e05cc19/attachment.bin>
More information about the TYPO3-team-core
mailing list