|
|
@@ -149,6 +149,13 @@ module.exports = function(crowi) {
|
|
|
return config.markdown[key];
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * It is deprecated to use this for anything other than ConfigLoader#load.
|
|
|
+ */
|
|
|
+ configSchema.statics.getDefaultCrowiConfigsObject = function() {
|
|
|
+ return getDefaultCrowiConfigs();
|
|
|
+ };
|
|
|
+
|
|
|
configSchema.statics.getRestrictGuestModeLabels = function() {
|
|
|
var labels = {};
|
|
|
labels[SECURITY_RESTRICT_GUEST_MODE_DENY] = 'security_setting.guest_mode.deny';
|
|
|
@@ -200,12 +207,6 @@ module.exports = function(crowi) {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- /**
|
|
|
- * ## Note ##
|
|
|
- * This method creates a config object that merge a cache into a defaults.
|
|
|
- * This can be used to get the config values that reflect the database values and the default values.
|
|
|
- * So, this method should be renamed to more a general name.
|
|
|
- */
|
|
|
configSchema.statics.setupConfigFormData = function(ns, config) {
|
|
|
var defaultConfig = {};
|
|
|
|