1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Fixes #5246 JS using 'settings' not loading correctly.

This commit is contained in:
camer0n 2024-05-14 10:46:19 -07:00
parent 51d78758f8
commit 2ee1433a84

View File

@ -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;