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

GC-2000: abolish isSavedStatesOfTabChanges, isEnabledAttachTitleHeader and showRecentCreatedNumber

Yuki Takei 6 лет назад
Родитель
Сommit
8ef58f1ed6

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

@@ -473,21 +473,6 @@ module.exports = function(crowi) {
     return crowi.xss.process(customTitle);
   };
 
-  configSchema.statics.isSavedStatesOfTabChanges = function(config) {
-    const key = 'customize:isSavedStatesOfTabChanges';
-    return getValueForCrowiNS(config, key);
-  };
-
-  configSchema.statics.isEnabledAttachTitleHeader = function(config) {
-    const key = 'customize:isEnabledAttachTitleHeader';
-    return getValueForCrowiNS(config, key);
-  };
-
-  configSchema.statics.showRecentCreatedNumber = function(config) {
-    const key = 'customize:showRecentCreatedNumber';
-    return getValueForCrowiNS(config, key);
-  };
-
   configSchema.statics.fileUploadEnabled = function(config) {
     const Config = this;
 

+ 0 - 5
src/server/util/swigFunctions.js

@@ -254,11 +254,6 @@ module.exports = function(crowi, app, req, locals) {
     return Config.isUploadable(config);
   };
 
-  locals.isEnabledAttachTitleHeader = function() {
-    const config = crowi.getConfig();
-    return Config.isEnabledAttachTitleHeader(config);
-  };
-
   locals.parentPath = function(path) {
     if (path === '/') {
       return path;

+ 1 - 1
src/server/views/widget/not_found_content.html

@@ -18,7 +18,7 @@
   {% include 'not_found_tabs.html' %}
 
   <div class="tab-content">
-    {% if isEnabledAttachTitleHeader() %}
+    {% if getConfig('crowi', 'customize:isEnabledAttachTitleHeader') %}
     {% if template %}
     <script type="text/template" id="raw-text-original"># {{ path|path2name }}&NewLine;{{ template }}</script>
     {% else %}