[BUGFIX] Allow OnlineMedia Renderers to override via Fluid 12/46712/4
authorBenni Mack <benni@typo3.org>
Tue, 16 Feb 2016 13:35:44 +0000 (14:35 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 29 Feb 2016 20:20:58 +0000 (21:20 +0100)
commitd3a449fff77cd442c8998986f68d903264a15bb0
treeaddd63b67f1010d904a82e9b5e7981cf5c253f73
parent690d2e6f0456e8efce10a40b0f1f3cfe72a0b11f
[BUGFIX] Allow OnlineMedia Renderers to override via Fluid

When using the Online Media (Youtube / Vimeo) then the autoplay
option is always taken from the FileReference, overriding
the option that might be set via Fluid.

A check if the option hasn't been set yet makes the overriding
order clearer.

Resolves: #73484
Releases: master, 7.6
Change-Id: I3fb57c88383445062f5beabd8d8287ff772974d3
Reviewed-on: https://review.typo3.org/46712
Reviewed-by: Daniel Gorges <daniel.gorges@b13.de>
Tested-by: Daniel Gorges <daniel.gorges@b13.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Resource/Rendering/VimeoRenderer.php
typo3/sysext/core/Classes/Resource/Rendering/YouTubeRenderer.php
typo3/sysext/core/Tests/Unit/Resource/Rendering/VimeoRendererTest.php
typo3/sysext/core/Tests/Unit/Resource/Rendering/YouTubeRendererTest.php