webmcp

changeset 239:1d2b463a65b0

Modified global_metatable.__newindex metamethod
author jbe
date Sun Mar 01 00:09:47 2015 +0100 (2015-03-01)
parents 4a735f198ded
children bcb3aed3a71e
files framework/bin/mcp.lua
line diff
     1.1 --- a/framework/bin/mcp.lua	Sat Feb 28 23:58:51 2015 +0100
     1.2 +++ b/framework/bin/mcp.lua	Sun Mar 01 00:09:47 2015 +0100
     1.3 @@ -193,7 +193,7 @@
     1.4    if not allowed_globals[key] then
     1.5      error("Setting of global variable prohibited", 2)
     1.6    end
     1.7 -  rawset(self, key, value)
     1.8 +  _G[key] = value
     1.9  end
    1.10  
    1.11  -- execute configurations and pre-fork initializers

Impressum / About Us