[BUGFIX] Fix image rendering for renderMethod = table 04/35704/2
authorTorben Hansen <derhansen@gmail.com>
Sun, 14 Dec 2014 11:57:32 +0000 (12:57 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 1 Jan 2015 18:53:30 +0000 (19:53 +0100)
commitcdf957db231aeb6a9b486f8ed5ab59692b73c613
tree088a337cf48f2beae7b5c9b188b92628122ffc52
parent13d256562d3ea1128b99c9f1e49339ee05f95e07
[BUGFIX] Fix image rendering for renderMethod = table

Since the introduction of FAL to TYPO3, the rendering of images
using CSS styled content with renderMethod = table is broken.

Using a single image results in the image being rendered twice
and if you have multiple images in one content object, only the
last image is rendered multiple times (depending on the amount
of images in the content object).

This patch resolves both issues and loads the current image file
reference to the contentObjectRenderer while looping through the
images of the content object.

Resolves: #46864
Related: #47004
Releases: master, 6.2
Change-Id: If120267111e30de6438cecc5e14cea34bc6fa235
Reviewed-on: http://review.typo3.org/35704
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/frontend/Classes/ContentObject/ImageTextContentObject.php