modulemanager: Fixed a global access.

Thu, 10 Dec 2009 03:00:16 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 10 Dec 2009 03:00:16 +0500
changeset 2349
e0d9f4000d6b
parent 2348
c7e5ed5eca99
child 2350
443e388988e7

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);

mercurial