Tue, 13 Oct 2009 14:58:45 +0500
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