# HG changeset patch # User Matthew Wild # Date 1335034900 -3600 # Node ID 98a29138dec84bedadc0cf52dec35393de170365 # Parent 352cd61e26820f9646c4b9a4ccce4f0d292a87d1 modulemanager: Use api_instance rather than pluginenv.module (same thing) diff -r 352cd61e2682 -r 98a29138dec8 core/modulemanager.lua --- a/core/modulemanager.lua Sat Apr 21 20:00:30 2012 +0100 +++ b/core/modulemanager.lua Sat Apr 21 20:01:40 2012 +0100 @@ -162,9 +162,9 @@ end end - modulemap[pluginenv.module.host][module_name] = pluginenv; - if pluginenv.module.host == "*" then - if not pluginenv.module.global then -- COMPAT w/pre-0.9 + modulemap[api_instance.host][module_name] = pluginenv; + if api_instance.host == "*" then + if not api_instance.global then -- COMPAT w/pre-0.9 log("warn", "mod_%s: Setting module.host = '*' deprecated, call module:set_global() instead", module_name); api_instance:set_global(); end