Skip to content

Node.js based forum software built for the modern web

moved base_templates_path to load config #1511

barisusakli274acc8eece7
diff --git a/app.js b/app.js
index 11cfb82d0b..b2fc88cfc8 100644
--- a/app.js
+++ b/app.js
@@ -97,6 +97,7 @@ function loadConfig() {
// Ensure themes_path is a full filepath
nconf.set('themes_path', path.resolve(__dirname, nconf.get('themes_path')));
+ nconf.set('base_templates_path', path.join(nconf.get('themes_path'), 'nodebb-theme-vanilla/templates'));
}
function start() {
@@ -134,7 +135,6 @@ function start() {
plugins.init();
nconf.set('url', nconf.get('base_url') + (nconf.get('use_port') ? ':' + nconf.get('port') : '') + nconf.get('relative_path'));
- nconf.set('base_templates_path', path.join(nconf.get('themes_path'), 'nodebb-theme-vanilla/templates'));
plugins.ready(function() {
webserver.init();