Explorar el Código

add locals.getConfig

utsushiiro hace 7 años
padre
commit
70e28331a6
Se han modificado 1 ficheros con 4 adiciones y 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
    */