From 75e786c1f0ca40d9244324f30d9ef662e7e24974 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 23 Mar 2013 02:33:15 +0100 Subject: core.*: Complete removal of all traces of the "core" section and section-related code. --- core/moduleapi.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'core/moduleapi.lua') 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 -- cgit v1.2.3