[TYPO3-core] RFC: fix bug: 6561 imgMax and imgStart (IMGTEXT) not working properly

Helmut Hummel typo3 at rampenlicht.org
Sat Oct 20 20:08:00 CEST 2007


Hi Masi,

Martin Kutschker schrieb:
>>
>> Solution:
>> Use the right index key for the generated image array and use the
>> stdWrapped imgMax value to calculate the maximum count of images.
> 
> The imgMax fix is certainly correct, but I wonder about the main part of
> your patch. In line 996 $index is set to $imgStart. So the loop that
> renders the images calculates in line 1066 the array index with the
> start image number. But you're patch forces index 0 for that case.

Thanks for reviewing and pointig at line 966 in tslib_content. You're
right and I attached the new patch, which only changes the stdWrap.

But I'm quite sure my patch is right for css_styled_content, since there
is no correction of the array index.

-- 
Viele Grüße
Helmut
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug_6561_tslib_content_2.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071020/4ab7fbfa/attachment.txt 


More information about the TYPO3-team-core mailing list