Explorar o código

add locals.getConfig

utsushiiro %!s(int64=7) %!d(string=hai) anos
pai
achega
70e28331a6
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/server/util/swigFunctions.js

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

@@ -41,6 +41,10 @@ module.exports = function(crowi, app, req, locals) {
     return fontSize;
   };
 
+  locals.getConfig = function(namespace, key) {
+    crowi.configManager.getConfig(namespace, key);
+  };
+
   /**
    * return app title
    */