[BUGFIX] Media obj respect moveJsFromHeaderToFooter
authorAlexandre Gravel-Raymond <a.gravel-raymond@alienor.net>
Fri, 4 Mar 2011 14:55:16 +0000 (15:55 +0100)
committerOliver Hader <oliver@typo3.org>
Mon, 11 Apr 2011 11:51:44 +0000 (13:51 +0200)
commit812eabea7f02e992b396ca4e5d518fac8a586be1
treeef8fad59a6ad88c6268aaabfbf4b8578834caa13
parentf00abbda8e4c3df59a8589055816b24066baa093
[BUGFIX] Media obj respect moveJsFromHeaderToFooter

If you set config.moveJsFromHeaderToFooter=1 in your TS template, and
add a Media object, the swfobject library is correctly added at the
bottom of the page, but the inline code calling the swfobject library
is added inline at the same place as the media object.
This results in the javascript error "swfobject is not defined" and
the media not appearing on the page.

This change makes use of t3lib_PageRenderer::addJsInlineCode to add
the inline code, so it respects config.moveJsFromHeaderToFooter=1.

Change-Id: I0902ca60dab810dc58e7f1b46a07ad4ae6f1efda
Resolves: #M17868
Reviewed-on: http://review.typo3.org/1062
Reviewed-by: Steffen Kamper
Reviewed-by: Björn Pedersen
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/cms/tslib/content/class.tslib_content_shockwaveflashobject.php