Sfoglia il codice sorgente

add locals.getConfig

utsushiiro 7 anni fa
parent
commit
70e28331a6
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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
    */