aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modulemanager.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 88d07f43..9cd56187 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -390,7 +390,14 @@ function api:require(lib)
end
function api:get_option(name, default_value)
- return config.get(self.host, self.name, name) or config.get(self.host, "core", name) or default_value;
+ local value = config.get(self.host, self.name, name);
+ if value == nil then
+ value = config.get(self.host, "core", name);
+ if value == nil then
+ value = default_value;
+ end
+ end
+ return value;
end
local t_remove = _G.table.remove;