|
|
@@ -217,6 +217,24 @@ module.exports = function(crowi) {
|
|
|
return true;
|
|
|
};
|
|
|
|
|
|
+ configSchema.statics.getLocalconfig = function(config)
|
|
|
+ {
|
|
|
+ const Config = this;
|
|
|
+
|
|
|
+ const local_config = {
|
|
|
+ crowi: {
|
|
|
+ title: config.crowi['app:title'],
|
|
|
+ url: config.crowi['app:url'] || '',
|
|
|
+ },
|
|
|
+ upload: {
|
|
|
+ image: Config.isUploadable(config),
|
|
|
+ file: Config.fileUploadEnabled(config),
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
+ return local_config;
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
configSchema.statics.isInstalled = function(config)
|
|
|
{
|