mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
closes #3182
This commit is contained in:
@@ -422,10 +422,17 @@ function createCategories(next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createMenuItems(next) {
|
function createMenuItems(next) {
|
||||||
|
var db = require('./database');
|
||||||
|
|
||||||
|
db.exists('navigation:enabled', function(err, exists) {
|
||||||
|
if (err || exists) {
|
||||||
|
return next(err);
|
||||||
|
}
|
||||||
var navigation = require('./navigation/admin'),
|
var navigation = require('./navigation/admin'),
|
||||||
data = require('../install/data/navigation.json');
|
data = require('../install/data/navigation.json');
|
||||||
|
|
||||||
navigation.save(data, next);
|
navigation.save(data, next);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function createWelcomePost(next) {
|
function createWelcomePost(next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user