aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-07 21:55:00 +0200
committerKim Alvefur <zash@zash.se>2018-07-07 21:55:00 +0200
commit5884db59cc58af1cf5848f1d560ed85a452b8e8b (patch)
treec7f559a580729ab477a1ced52b2b47dc309b5ae7 /core
parente7cae3b63ebaa30fe7bc77c6c0d1c030bd83d83a (diff)
downloadprosody-5884db59cc58af1cf5848f1d560ed85a452b8e8b.tar.gz
prosody-5884db59cc58af1cf5848f1d560ed85a452b8e8b.zip
moduleapi: Lazy-load configmanager on demand simplify dependency graph
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
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;