diff options
author | Kim Alvefur <zash@zash.se> | 2013-03-23 02:33:15 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-03-23 02:33:15 +0100 |
commit | 75e786c1f0ca40d9244324f30d9ef662e7e24974 (patch) | |
tree | ecc07df37df1db9a79a86f936ed683a9654861f4 /core/moduleapi.lua | |
parent | 0019ee9380c3129056cd4521018a888b69068ca0 (diff) | |
download | prosody-75e786c1f0ca40d9244324f30d9ef662e7e24974.tar.gz prosody-75e786c1f0ca40d9244324f30d9ef662e7e24974.zip |
core.*: Complete removal of all traces of the "core" section and section-related code.
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r-- | core/moduleapi.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 20898fcf..f9701471 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -167,12 +167,9 @@ function api:shared(...) end function api:get_option(name, default_value) - local value = config.get(self.host, self.name, name); + local value = config.get(self.host, name); if value == nil then - value = config.get(self.host, "core", name); - if value == nil then - value = default_value; - end + value = default_value; end return value; end |