[TASK] Add absRefPrefix to responsive images 78/35678/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 3 Nov 2013 13:34:35 +0000 (14:34 +0100)
committerSteffen Müller <typo3@t3node.com>
Tue, 30 Dec 2014 19:14:39 +0000 (20:14 +0100)
Responsive images must also use the absRefPrefix
as prefix.

Resolves: #53292
Releases: master, 6.2
Change-Id: I12f4ece9b2dda6fb1f56684aefd4013b4ee907a9
Reviewed-on: http://review.typo3.org/25138
Reviewed-on: http://review.typo3.org/35678
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

index f47cb27..0d37f4b 100644 (file)
@@ -1415,7 +1415,7 @@ class ContentObjectRenderer {
                                if ($sourceInfo) {
                                        $sourceConfiguration['width'] = $sourceInfo[0];
                                        $sourceConfiguration['height'] = $sourceInfo[1];
-                                       $sourceConfiguration['src'] = htmlspecialchars($sourceInfo[3]);
+                                       $sourceConfiguration['src'] = htmlspecialchars($GLOBALS['TSFE']->absRefPrefix . $sourceInfo[3]);
                                        $sourceConfiguration['selfClosingTagSlash'] = (!empty($GLOBALS['TSFE']->xhtmlDoctype) ? ' /' : '');
 
                                        $oneSourceCollection = $this->substituteMarkerArray($sourceLayout, $sourceConfiguration, '###|###', TRUE, TRUE);