modulemanager: Changed api:get_host_items to include items from the global host in its result.

Tue, 13 Oct 2009 14:58:45 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Tue, 13 Oct 2009 14:58:45 +0500
changeset 1946
0eb3835ef9bf
parent 1945
adfd7f3720f5
child 1948
50128afa7858

modulemanager: Changed api:get_host_items to include items from the global host in its result.

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- a/core/modulemanager.lua	Sat Oct 10 03:09:15 2009 +0100
+++ b/core/modulemanager.lua	Tue Oct 13 14:58:45 2009 +0500
@@ -408,6 +408,14 @@
 			end
 		end
 	end
+	for mod_name, module in pairs(modulemap["*"]) do
+		module = module.module;
+		if module.items then
+			for _, item in ipairs(module.items[key] or NULL) do
+				t_insert(result, item);
+			end
+		end
+	end
 	return result;
 end
 

mercurial