# HG changeset patch # User Waqas Hussain # Date 1260396016 -18000 # Node ID e0d9f4000d6bbc822f4545df8bef4c113524740c # Parent c7e5ed5eca99ca6ca9e15ccd4250d3c6aa08bd8a modulemanager: Fixed a global access. diff -r c7e5ed5eca99 -r e0d9f4000d6b core/modulemanager.lua --- a/core/modulemanager.lua Thu Dec 10 02:50:23 2009 +0500 +++ b/core/modulemanager.lua Thu Dec 10 03:00:16 2009 +0500 @@ -404,8 +404,8 @@ 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);