From 157842119d2b2f5ca6ba907e4a55c4da21d3d261 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 13 Oct 2009 14:58:45 +0500 Subject: modulemanager: Changed api:get_host_items to include items from the global host in its result. --- core/modulemanager.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 383b9d37..465b9dd8 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -408,6 +408,14 @@ function api:get_host_items(key) 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 -- cgit v1.2.3