removing backwards compatibility fixed in preparation for 0.5.0. Prepare for stuff to break!!!!!

This commit is contained in:
Julian Lam
2014-05-23 19:12:54 -04:00
parent e505a9a6ac
commit d74de798fc
3 changed files with 2 additions and 25 deletions

View File

@@ -61,17 +61,6 @@ function routeCurrentTheme(app, themeId, themesData) {
// Theme's templates path
nconf.set('theme_templates_path', themeObj.templates ? path.join(themesPath, themeObj.id, themeObj.templates) : nconf.get('base_templates_path'));
themeTemplatesPath = nconf.get('theme_templates_path');
// Theme's static directory (to be deprecated for 0.5.0)
if (themeObj.staticDir) {
app.use(relativePath + '/css/assets', express.static(path.join(themesPath, themeObj.id, themeObj.staticDir), {
maxAge: app.enabled('cache') ? 5184000000 : 0
}));
if (process.env.NODE_ENV === 'development') {
winston.info('Static directory routed for theme: ' + themeObj.id);
}
}
}
function compileTemplates(pluginTemplates) {