mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
get rid of app.exposeConfigToTemplates
This commit is contained in:
@@ -70,8 +70,8 @@ apiController.getConfig = function(req, res, next) {
|
||||
config.environment = process.env.NODE_ENV;
|
||||
config.loggedIn = !!req.user;
|
||||
config['cache-buster'] = meta.config['cache-buster'] || '';
|
||||
config['script-buster'] = meta.js.hash;
|
||||
config['css-buster'] = meta.css.hash;
|
||||
config['script-buster'] = meta.js.hash || '';
|
||||
config['css-buster'] = meta.css.hash || '';
|
||||
config.requireEmailConfirmation = parseInt(meta.config.requireEmailConfirmation, 10) === 1;
|
||||
config.topicPostSort = meta.config.topicPostSort || 'oldest_to_newest';
|
||||
config.categoryTopicSort = meta.config.categoryTopicSort || 'newest_to_oldest';
|
||||
|
||||
Reference in New Issue
Block a user