Diff

core/modulemanager.lua @ 1946:0eb3835ef9bf

modulemanager: Changed api:get_host_items to include items from the global host in its result.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 13 Oct 2009 14:58:45 +0500
parent 1933:3884a0aac4d7
child 1960:1e674dae31ae
line wrap: on
line diff
--- 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