mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
better local function name in install.js
This commit is contained in:
@@ -234,13 +234,13 @@ function setupDefaultConfigs(next) {
|
||||
});
|
||||
|
||||
if (install.values) {
|
||||
setOnEmpty('social:twitter:key', 'social:twitter:secret');
|
||||
setOnEmpty('social:google:id', 'social:google:secret');
|
||||
setOnEmpty('social:facebook:app_id', 'social:facebook:secret');
|
||||
setIfPaired('social:twitter:key', 'social:twitter:secret');
|
||||
setIfPaired('social:google:id', 'social:google:secret');
|
||||
setIfPaired('social:facebook:app_id', 'social:facebook:secret');
|
||||
}
|
||||
}
|
||||
|
||||
function setOnEmpty(key1, key2) {
|
||||
function setIfPaired(key1, key2) {
|
||||
var meta = require('./meta');
|
||||
if (install.values[key1] && install.values[key2]) {
|
||||
meta.configs.setOnEmpty(key1, install.values[key1]);
|
||||
|
||||
Reference in New Issue
Block a user