[BUGFIX] Allow OnlineMedia Renderers to override via Fluid 76/46976/2
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:21:23 +0000 (21:21 +0100)
commit9a1fb58b3afb70d5ff07d9d485cc944cdc6f55c5
treeb3ccd048709b4d8464f53f79e5a2c26e56c64499
parent5967cf2de282a7ef5dcd3273fb5367a2f75bad9f
[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/46976
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