From c9642cecd2e72d2d6b8225dd3fbe4743bbcb2c02 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 6 Mar 2014 23:24:47 -0500 Subject: [PATCH] setting Lavender as default theme for 0.4.0, woo! --- src/install.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/install.js b/src/install.js index 10ca8c39e6..dfd4cf994b 100644 --- a/src/install.js +++ b/src/install.js @@ -253,12 +253,6 @@ var async = require('async'), }, { field: 'chatMessagesToDisplay', value: 50 - }, { - field: 'theme:type', - value: 'local' - }, { - field: 'theme:id', - value: 'nodebb-theme-cerulean' }]; async.each(defaults, function (configObj, next) { @@ -282,6 +276,15 @@ var async = require('async'), } } }, + function(next) { + var meta = require('./meta'); + winston.info('Enabling default theme: Lavender'); + + meta.themes.set({ + type: 'local', + id: 'nodebb-theme-lavender' + }, next); + }, function (next) { // Check if an administrator needs to be created var Groups = require('./groups');