Node.js based forum software built for the modern web
better local function name in install.js
Julian Lamfcbc02d48a4d
diff --git a/src/install.js b/src/install.jsindex ded2921a0b..be1c322267 100644--- a/src/install.js+++ b/src/install.js@@ -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]);