[BUGFIX] YouTubeRenderer "controls" option 08/53708/2
authorČeslav Przywara <ceslav@przywara.cz>
Mon, 7 Aug 2017 09:40:11 +0000 (11:40 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Tue, 15 Aug 2017 13:55:21 +0000 (15:55 +0200)
commit3cab6c2d51c5d41005860a9011052dc9ae1ddc2f
treefb5b94e67877981b36555e8df8fc2a322b28046b
parent5e5c0ec7cbd3306dc35d95cac3217038bec437af
[BUGFIX] YouTubeRenderer "controls" option

The "controls" parameter appended to YouTube embed URL is either set to
value provided in $options array or to default backwards-compatible
value (controls=2).

Specifically, if controls option is set to 0, the controls parameter
must be present in URL, because default value for it is 1.

Fix is applied to related unit test too.

Resolves: #82044
Releases: master, 8.7, 7.6
Change-Id: I1519b5f515f85eb473f590762171b250d26f32c4
Reviewed-on: https://review.typo3.org/53708
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Resource/Rendering/YouTubeRenderer.php
typo3/sysext/core/Tests/Unit/Resource/Rendering/YouTubeRendererTest.php