mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
add copyright widget on fresh install
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var async = require('async'),
|
var async = require('async'),
|
||||||
utils = require('../public/src/utils.js'),
|
|
||||||
fs = require('fs'),
|
fs = require('fs'),
|
||||||
url = require('url'),
|
url = require('url'),
|
||||||
path = require('path'),
|
path = require('path'),
|
||||||
prompt = require('prompt'),
|
prompt = require('prompt'),
|
||||||
winston = require('winston'),
|
winston = require('winston'),
|
||||||
nconf = require('nconf'),
|
nconf = require('nconf'),
|
||||||
|
utils = require('../public/src/utils.js'),
|
||||||
|
db = require('./database.js'),
|
||||||
|
|
||||||
install = {
|
install = {
|
||||||
questions: [{
|
questions: [{
|
||||||
@@ -348,6 +349,9 @@ var async = require('async'),
|
|||||||
});
|
});
|
||||||
}, next);
|
}, next);
|
||||||
},
|
},
|
||||||
|
function (next) {
|
||||||
|
db.setObjectField('widgets:global', 'footer', "[{\"widget\":\"html\",\"data\":{\"html\":\"<footer id=\\\"footer\\\" class=\\\"container footer\\\">\\r\\n\\t<div class=\\\"copyright\\\">\\r\\n\\t\\tCopyright © 2014 <a target=\\\"_blank\\\" href=\\\"https://www.nodebb.com\\\">NodeBB Forums</a> | <a target=\\\"_blank\\\" href=\\\"//github.com/designcreateplay/NodeBB/graphs/contributors\\\">Contributors</a>\\r\\n\\t</div>\\r\\n</footer>\",\"title\":\"\",\"container\":\"\"}}]", next);
|
||||||
|
},
|
||||||
function (next) {
|
function (next) {
|
||||||
require('./upgrade').upgrade(next);
|
require('./upgrade').upgrade(next);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user