Quellcode durchsuchen

add locals.getConfig

utsushiiro vor 7 Jahren
Ursprung
Commit
70e28331a6
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  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
    */