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) {
var db = require('./database'),
Topics = require('./topics');
@ -463,6 +470,7 @@ install.setup = function (callback) {
enableDefaultTheme,
createAdministrator,
createCategories,
createMenuItems,
createWelcomePost,
enableDefaultPlugins,
setCopyrightWidget,

Loading…
Cancel
Save