From 8495a4cfffc975d8369e2f18b08b80e5f23bc21d Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 10 Dec 2009 03:00:16 +0500 Subject: modulemanager: Fixed a global access. --- core/modulemanager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 65a38ccb..7ee262c4 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -404,8 +404,8 @@ function api:get_option(name, default_value) return value; end -function api:get_option_string(...) - local value = self:get_option(...); +function api:get_option_string(name, default_value) + local value = self:get_option(name, default_value); if type(value) == "table" then if #value > 1 then self:log("error", "Config option '%s' does not take a list, using just the first item", name); -- cgit v1.2.3