diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-07 21:55:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-07 21:55:00 +0200 |
commit | 5884db59cc58af1cf5848f1d560ed85a452b8e8b (patch) | |
tree | c7f559a580729ab477a1ced52b2b47dc309b5ae7 | |
parent | e7cae3b63ebaa30fe7bc77c6c0d1c030bd83d83a (diff) | |
download | prosody-5884db59cc58af1cf5848f1d560ed85a452b8e8b.tar.gz prosody-5884db59cc58af1cf5848f1d560ed85a452b8e8b.zip |
moduleapi: Lazy-load configmanager on demand simplify dependency graph
-rw-r--r-- | core/moduleapi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 64c4ce43..0795f8ef 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -6,7 +6,6 @@ -- COPYING file in the source package for more information. -- -local config = require "core.configmanager"; local array = require "util.array"; local set = require "util.set"; local it = require "util.iterators"; @@ -196,6 +195,7 @@ function api:shared(...) end function api:get_option(name, default_value) + local config = require "core.configmanager"; local value = config.get(self.host, name); if value == nil then value = default_value; |