Browse Source

add locals.getConfig

utsushiiro 7 years ago
parent
commit
63d2069f23
1 changed files with 1 additions and 1 deletions
  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);
   };
 
   /**