1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 10:04:35 +02:00

Fixed: Issue #1289 - menu manager - e107 is not defined.

This commit is contained in:
Lóna Lore
2016-01-06 16:52:10 +01:00
parent 73ab0ceac6
commit 7516ad880f

View File

@@ -1030,9 +1030,10 @@ class e_jsmanager
$tp = e107::getParser(); $tp = e107::getParser();
$options = $this->arrayMergeDeepArray(array($this->_e_js_settings)); $options = $this->arrayMergeDeepArray(array($this->_e_js_settings));
$json = $tp->toJSON($options); $json = $tp->toJSON($options);
$js = 'jQuery.extend(e107.settings, ' . $json . ');'; echo "<script>\n";
echo '<script>' . $js . '</script>'; echo "var e107 = e107 || {'settings': {}, 'behaviors': {}};\n";
echo "\n"; echo "jQuery.extend(e107.settings, " . $json . ");\n";
echo "</script>\n";
break; break;
case 'framework': // CDN frameworks - rendered before consolidation script (if enabled) case 'framework': // CDN frameworks - rendered before consolidation script (if enabled)