1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 16:46:50 +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();
$options = $this->arrayMergeDeepArray(array($this->_e_js_settings));
$json = $tp->toJSON($options);
$js = 'jQuery.extend(e107.settings, ' . $json . ');';
echo '<script>' . $js . '</script>';
echo "\n";
echo "<script>\n";
echo "var e107 = e107 || {'settings': {}, 'behaviors': {}};\n";
echo "jQuery.extend(e107.settings, " . $json . ");\n";
echo "</script>\n";
break;
case 'framework': // CDN frameworks - rendered before consolidation script (if enabled)