Thu, 10 Dec 2009 03:00:16 +0500
modulemanager: Fixed a global access.
core/modulemanager.lua | file | annotate | diff | comparison | revisions |
--- 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);