Revert "changed base templates path to Persona, from Vanilla."

This reverts commit fe7f5402a8.
v1.18.x
Julian Lam 10 years ago
parent 4f57227505
commit ac46356cad

@ -95,7 +95,7 @@ function loadConfig() {
// Ensure themes_path is a full filepath // Ensure themes_path is a full filepath
nconf.set('themes_path', path.resolve(__dirname, nconf.get('themes_path'))); nconf.set('themes_path', path.resolve(__dirname, nconf.get('themes_path')));
nconf.set('core_templates_path', path.join(__dirname, 'src/views')); 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 (!process.send) {
// If run using `node app`, log GNU copyright info along with server info // If run using `node app`, log GNU copyright info along with server info

@ -34,7 +34,7 @@ module.exports = function(Meta) {
return callback(err); 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')), baseThemePath = path.join(nconf.get('themes_path'), (themeData['theme:type'] && themeData['theme:type'] === 'local' ? themeId : 'nodebb-theme-vanilla')),
paths = [ paths = [
baseThemePath, baseThemePath,

@ -119,7 +119,7 @@ module.exports = function(Meta) {
return callback(err); return callback(err);
} }
var themeId = data.currentThemeId || 'nodebb-theme-persona'; var themeId = data.currentThemeId || 'nodebb-theme-vanilla';
var themeObj = data.themesData.filter(function(themeObj) { var themeObj = data.themesData.filter(function(themeObj) {
return themeObj.id === themeId; return themeObj.id === themeId;

@ -89,12 +89,6 @@ function initializeNodeBB(callback) {
function(next) { function(next) {
plugins.init(app, middleware, next); plugins.init(app, middleware, next);
}, },
function(next) {
plugins.fireHook('static:app.preload', {
app: app,
middleware: middleware
}, next);
},
function(next) { function(next) {
async.parallel([ async.parallel([
async.apply(meta.templates.compile), async.apply(meta.templates.compile),
@ -104,6 +98,12 @@ function initializeNodeBB(callback) {
], next); ], next);
}, },
function(results, next) { function(results, next) {
plugins.fireHook('static:app.preload', {
app: app,
middleware: middleware
}, next);
},
function(next) {
routes(app, middleware); routes(app, middleware);
next(); next();
} }

Loading…
Cancel
Save