#29041Enlarge on click does not work anymore for images
Description
*Problem:*
The javascript function openPic is not added anymore to the page when “Enlarge on click” is enabled for images in the cObj “Text with images” or “Images”.
*Solution:*
After a lookup it seems in #27983 (Remove deprecated parts marked for removal) too much was removed.
$GLOBALS['TSFE']->additionalJavaScript
was never rendered anymore and is used to add javascript function openPic to the page, when “Enlarge to click” is enabled
*How to reproduce:*
Add content object “Images” to a page, add an image to it and enable “Enlarge to click”. Not a popup but a new tab will open.