Skip to content

Node.js based forum software built for the modern web

closes #2632

barisusaklicb5ee2a14153
diff --git a/public/src/app.js b/public/src/app.js
index ea567e239e..d7097f91e7 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -364,7 +364,7 @@ app.uid = null;
}
};
- function exposeConfigToTemplates() {
+ app.exposeConfigToTemplates = function() {
$(document).ready(function() {
templates.setGlobal('loggedIn', config.loggedIn);
templates.setGlobal('relative_path', RELATIVE_PATH);
@@ -599,7 +599,7 @@ app.uid = null;
showWelcomeMessage = window.location.href.indexOf('loggedin') !== -1;
- exposeConfigToTemplates();
+ app.exposeConfigToTemplates();
socketIOConnect();
diff --git a/public/src/client/account/settings.js b/public/src/client/account/settings.js
index 3dde90dd98..0b4bbbd00f 100644
--- a/public/src/client/account/settings.js
+++ b/public/src/client/account/settings.js
@@ -42,6 +42,7 @@ define('forum/account/settings', ['forum/account/header'], function(header) {
config[key] = newSettings[key];
}
}
+ app.exposeConfigToTemplates();
if (parseInt(app.uid, 10) === parseInt(ajaxify.variables.get('theirid'), 10)) {
ajaxify.refresh();