[BUGFIX] Javascript for TMENU_LAYERS and GMENU_LAYERS missing
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / Menu / JavaScriptMenuContentObject.php
index dfb892a..cd49b1e 100644 (file)
@@ -66,7 +66,7 @@ class JavaScriptMenuContentObject extends \TYPO3\CMS\Frontend\ContentObject\Menu
                        }
                        $JScode .= $this->generate_level($levels, 1, $this->id, $this->menuArr, $this->MP_array) . LF;
                        $GLOBALS['TSFE']->additionalHeaderData['JSMenuCode'] = '<script type="text/javascript" src="' . $GLOBALS['TSFE']->absRefPrefix . 't3lib/jsfunc.menu.js"></script>';
-                       $GLOBALS['TSFE']->JSCode .= $JScode;
+                       $GLOBALS['TSFE']->additionalJavaScript['JSCode'] .= $JScode;
                        // Printing:
                        $allFormCode = '';
                        for ($a = 1; $a <= $this->levels; $a++) {