From 274acc8eece762a561552cd5eb117fa04c303a62 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 9 May 2014 13:47:29 -0400 Subject: [PATCH] moved base_templates_path to load config #1511 --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();