# HG changeset patch # User Matthew Wild # Date 1289621560 0 # Node ID 6f4db418a9cc1531c7ac97071e41e94cb5f0d3d9 # Parent bfc47564aaef8afc94d725d6b0be426d59112f26 Backed out changeset bfc47564aaef (No need for _M with module.environment) diff -r bfc47564aaef -r 6f4db418a9cc core/modulemanager.lua --- a/core/modulemanager.lua Sat Nov 13 04:09:14 2010 +0000 +++ b/core/modulemanager.lua Sat Nov 13 04:12:40 2010 +0000 @@ -117,7 +117,6 @@ local pluginenv = setmetatable({ module = api_instance }, { __index = _G }); api_instance.environment = pluginenv; - pluginenv._M = pluginenv; setfenv(mod, pluginenv); hosts[host].modules = modulemap[host];