save default menu on installation

v1.18.x
psychobunny 10 years ago
parent d754a6390e
commit 7a4fc8e48b

@ -385,6 +385,13 @@ function createCategories(next) {
}); });
} }
function createMenuItems(next) {
var navigation = require('./navigation/admin'),
data = require('../install/data/navigation.json');
navigation.save(data, next);
}
function createWelcomePost(next) { function createWelcomePost(next) {
var db = require('./database'), var db = require('./database'),
Topics = require('./topics'); Topics = require('./topics');
@ -463,6 +470,7 @@ install.setup = function (callback) {
enableDefaultTheme, enableDefaultTheme,
createAdministrator, createAdministrator,
createCategories, createCategories,
createMenuItems,
createWelcomePost, createWelcomePost,
enableDefaultPlugins, enableDefaultPlugins,
setCopyrightWidget, setCopyrightWidget,

Loading…
Cancel
Save