Diff

core/moduleapi.lua @ 5377:898454038524

core.*: Complete removal of all traces of the "core" section and section-related code.
author Kim Alvefur <zash@zash.se>
date Sat, 23 Mar 2013 02:33:15 +0100
parent 5163:854f6d9aee2d
child 5412:a5fcda77c6b1
line wrap: on
line diff
--- a/core/moduleapi.lua	Sat Mar 23 02:24:11 2013 +0100
+++ b/core/moduleapi.lua	Sat Mar 23 02:33:15 2013 +0100
@@ -167,12 +167,9 @@
 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