mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
closes #2632
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user