# HG changeset patch # User Waqas Hussain # Date 1255427925 -18000 # Node ID 0eb3835ef9bfd2d67064f08b5f7213c3c0fb6452 # Parent adfd7f3720f57cc24dfc15dae455181cc133d68b modulemanager: Changed api:get_host_items to include items from the global host in its result. diff -r adfd7f3720f5 -r 0eb3835ef9bf core/modulemanager.lua --- 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