mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
filter:templates.get_config, allows you to modify template config
as found here https://github.com/NodeBB/nodebb-theme-vanilla/blob/master/templates/config.json @Schamper
This commit is contained in:
@@ -150,7 +150,10 @@ function getTemplatesListing(req, res, next) {
|
||||
plugins.fireHook('filter:templates.get_virtual', [], next);
|
||||
},
|
||||
config: function(next) {
|
||||
fs.readFile(path.join(nconf.get('views_dir'), 'config.json'), next);
|
||||
fs.readFile(path.join(nconf.get('views_dir'), 'config.json'), function(err, config) {
|
||||
config = JSON.parse(config.toString());
|
||||
plugins.fireHook('filter:templates.get_config', config, next);
|
||||
});
|
||||
},
|
||||
}, function(err, results) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user