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 | aae7d4bce54e147a361b3cf52a66d599089966ca (patch) | |
tree | c7f559a580729ab477a1ced52b2b47dc309b5ae7 /core/moduleapi.lua | |
parent | 9a136fef54c5e92f6ff7354655f8cb9036f808e3 (diff) | |
download | prosody-aae7d4bce54e147a361b3cf52a66d599089966ca.tar.gz prosody-aae7d4bce54e147a361b3cf52a66d599089966ca.zip |
moduleapi: Lazy-load configmanager on demand simplify dependency graph
Diffstat (limited to 'core/moduleapi.lua')
-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; |