mizozobu %!s(int64=6) %!d(string=hai) anos
pai
achega
423960eafa

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

@@ -127,10 +127,6 @@ module.exports = function(crowi, app, req, locals) {
     return process.env.HACKMD_URI != null;
     return process.env.HACKMD_URI != null;
   };
   };
 
 
-  locals.customHeader = function() {
-    return configManager.getConfig('crowi', 'customize:header') || '';
-  };
-
   locals.parentPath = function(path) {
   locals.parentPath = function(path) {
     if (path === '/') {
     if (path === '/') {
       return path;
       return path;

+ 1 - 1
src/server/views/layout/layout.html

@@ -12,7 +12,7 @@
 
 
   <meta name="apple-mobile-web-app-title" content="{{ appService.getAppTitle() }}">
   <meta name="apple-mobile-web-app-title" content="{{ appService.getAppTitle() }}">
 
 
-  {{ customHeader() }}
+  {{ getConfig('crowi', 'customize:header') | default('') }}
 
 
   {% include '../widget/headers/favicon.html' %}
   {% include '../widget/headers/favicon.html' %}
   {% include '../widget/headers/ie11-polyfills.html' %}
   {% include '../widget/headers/ie11-polyfills.html' %}

+ 1 - 1
src/server/views/page_presentation.html

@@ -6,7 +6,7 @@
     <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
     <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
 
 
-    {{ customHeader() }}
+    {{ getConfig('crowi', 'customize:header') | default('') }}
 
 
     <!-- polyfills for IE11 -->
     <!-- polyfills for IE11 -->
     <script>
     <script>