mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 01:11:28 +02:00
Fixes #5246 JS using 'settings' not loading correctly.
This commit is contained in:
@@ -1253,10 +1253,8 @@ class e_jsmanager
|
||||
$tp = e107::getParser();
|
||||
$json = $tp->toJSON($this->_e_js_settings);
|
||||
echo "<script>\n";
|
||||
echo '$(document).ready(function() {';
|
||||
echo "var e107 = e107 || {'settings': {}, 'behaviors': {}};\n";
|
||||
echo "jQuery.extend(e107.settings, " . $json . ");\n";
|
||||
echo '});';
|
||||
echo "</script>\n";
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user