@@ -455,11 +455,6 @@ module.exports = function(crowi) {
return this._customScript;
};
- configSchema.statics.customHeader = function(config) {
- const key = 'customize:header';
- return getValueForCrowiNS(config, key);
- };
-
configSchema.statics.customTitle = function(config, page) {
validateCrowi();
@@ -221,8 +221,7 @@ module.exports = function(crowi, app, req, locals) {
locals.customHeader = function() {
- const config = crowi.getConfig();
- return Config.customHeader(config);
+ return configManager.getConfig('crowi', 'customize:header') || '';
locals.customTitle = function(page) {