Node.js based forum software built for the modern web
Revert "changed base templates path to Persona, from Vanilla."
Julian Lamac46356cadf8
diff --git a/app.js b/app.jsindex 210927491b..0f5de4bfe9 100644--- a/app.js+++ b/app.js@@ -95,7 +95,7 @@ function loadConfig() {// Ensure themes_path is a full filepathnconf.set('themes_path', path.resolve(__dirname, nconf.get('themes_path')));nconf.set('core_templates_path', path.join(__dirname, 'src/views'));- nconf.set('base_templates_path', path.join(nconf.get('themes_path'), 'nodebb-theme-persona/templates'));+ nconf.set('base_templates_path', path.join(nconf.get('themes_path'), 'nodebb-theme-vanilla/templates'));if (!process.send) {// If run using `node app`, log GNU copyright info along with server infodiff --git a/src/meta/css.js b/src/meta/css.jsindex 982388dafb..50369f89fb 100644--- a/src/meta/css.js+++ b/src/meta/css.js@@ -34,7 +34,7 @@ module.exports = function(Meta) {return callback(err);}- var themeId = (themeData['theme:id'] || 'nodebb-theme-persona'),+ var themeId = (themeData['theme:id'] || 'nodebb-theme-vanilla'),baseThemePath = path.join(nconf.get('themes_path'), (themeData['theme:type'] && themeData['theme:type'] === 'local' ? themeId : 'nodebb-theme-vanilla')),paths = [baseThemePath,diff --git a/src/meta/themes.js b/src/meta/themes.jsindex e10194c9af..77f1e41523 100644--- a/src/meta/themes.js+++ b/src/meta/themes.js@@ -119,7 +119,7 @@ module.exports = function(Meta) {return callback(err);}- var themeId = data.currentThemeId || 'nodebb-theme-persona';+ var themeId = data.currentThemeId || 'nodebb-theme-vanilla';var themeObj = data.themesData.filter(function(themeObj) {return themeObj.id === themeId;diff --git a/src/webserver.js b/src/webserver.jsindex bef33d2dae..abeb367a90 100644--- a/src/webserver.js+++ b/src/webserver.js@@ -89,12 +89,6 @@ function initializeNodeBB(callback) {function(next) {plugins.init(app, middleware, next);},- function(next) {- plugins.fireHook('static:app.preload', {- app: app,- middleware: middleware- }, next);- },function(next) {async.parallel([async.apply(meta.templates.compile),@@ -104,6 +98,12 @@ function initializeNodeBB(callback) {], next);},function(results, next) {+ plugins.fireHook('static:app.preload', {+ app: app,+ middleware: middleware+ }, next);+ },+ function(next) {routes(app, middleware);next();}