mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
removing backwards compatibility fixed in preparation for 0.5.0. Prepare for stuff to break!!!!!
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user