Ver Fonte

add locals.getConfig

utsushiiro há 7 anos atrás
pai
commit
63d2069f23
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/server/util/swigFunctions.js

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

@@ -42,7 +42,7 @@ module.exports = function(crowi, app, req, locals) {
   };
 
   locals.getConfig = function(namespace, key) {
-    crowi.configManager.getConfig(namespace, key);
+    return crowi.configManager.getConfig(namespace, key);
   };
 
   /**