Diff

core/modulemanager.lua @ 4639:98a29138dec8

modulemanager: Use api_instance rather than pluginenv.module (same thing)
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Apr 2012 20:01:40 +0100
parent 4638:352cd61e2682
child 4640:645c93eaf249
line wrap: on
line diff
--- 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