Просмотр исходного кода

GC-2000: abolish layoutType method

Yuki Takei 6 лет назад
Родитель
Сommit
afa3b65e69
2 измененных файлов с 1 добавлено и 7 удалено
  1. 0 5
      src/server/models/config.js
  2. 1 2
      src/server/util/swigFunctions.js

+ 0 - 5
src/server/models/config.js

@@ -473,11 +473,6 @@ module.exports = function(crowi) {
     return crowi.xss.process(customTitle);
   };
 
-  configSchema.statics.layoutType = function(config) {
-    const key = 'customize:layout';
-    return getValueForCrowiNS(config, key);
-  };
-
   configSchema.statics.highlightJsStyle = function(config) {
     const key = 'customize:highlightJsStyle';
     return getValueForCrowiNS(config, key);

+ 1 - 2
src/server/util/swigFunctions.js

@@ -234,8 +234,7 @@ module.exports = function(crowi, app, req, locals) {
   };
 
   locals.layoutType = function() {
-    const config = crowi.getConfig();
-    return Config.layoutType(config);
+    return configManager.getConfig('crowi', 'customize:layout');
   };
 
   locals.highlightJsStyle = function() {