mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
moving pluginRoutes to top of route stack (like others), put app.load hook behind plugins' ready callback
This commit is contained in:
@@ -80,7 +80,7 @@ function compileTemplates(pluginTemplates) {
|
||||
winston.info('[themes] Compiling templates');
|
||||
rimraf.sync(nconf.get('views_dir'));
|
||||
mkdirp.sync(nconf.get('views_dir'));
|
||||
|
||||
|
||||
utils.walk(nconf.get('base_templates_path'), function(err, baseTpls) {
|
||||
utils.walk(nconf.get('theme_templates_path'), function (err, themeTpls) {
|
||||
var paths = pluginTemplates;
|
||||
@@ -123,7 +123,7 @@ function compileTemplates(pluginTemplates) {
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function handleErrors(err, req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user