This commit is contained in:
Julian Lam
2014-09-29 19:04:28 -04:00
parent 2b5d0e89a5
commit 30b2f55ebc
2 changed files with 5 additions and 11 deletions

View File

@@ -42,16 +42,7 @@ function routeCurrentTheme(app, themeId, themesData) {
winston.info('[themes] Using theme ' + themeId);
}
// Theme's templates path
var themePath = nconf.get('base_templates_path'),
fallback = path.join(themesPath, themeObj.id, 'templates');
if (themeObj.templates) {
themePath = path.join(themesPath, themeObj.id, themeObj.templates);
} else if (fs.existsSync(fallback)) {
themePath = fallback;
}
nconf.set('theme_templates_path', themePath);
meta.themes.setPath(themeObj);
}
module.exports = function(app, data) {