[TYPO3-core] RFC #15543: Bug: PHP Warning in t3lib_spritemanager

Steffen Ritter info at rs-websystems.de
Fri Oct 15 20:04:05 CEST 2010


Hey list,
This is an SVN patch request.
(originally reported by Sven Jürgens)

Type: Bug

Bugtracker references:
http://bugs.typo3.org/view.php?id=15543

Branches: 4.4, trunk


Problem:
try to add a own sprite css with

$icons = array(
      'extensions-myextension-icon1',
      'extensions-myextension-icon2'
);
t3lib_SpriteManager::addIconSprite(
      $icons,
      t3lib_extMgm::siteRelPath('myextension') . 'myextension_sprite.css'
);


then there is a php Warning
PHP Warning: array_merge() [function.array-merge]: Argument #1 is not an 
array in /.../t3lib/class.t3lib_spritemanager.php line 211

and the sprite inclusion fails

Solution:
initialize the array in stddb/tables.php


regards
Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15543-v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101015/83bafa98/attachment.asc>


More information about the TYPO3-team-core mailing list