Revision as of 02:29, 13 March 2019 by metawikimedia>Xaosflux(Changed protection level for "Module:No globals": Used in interface MediaWiki:Protectedpagetext ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)))
localmt=getmetatable(_G)or{}functionmt.__index(t,k)ifk~='arg'thenerror('Tried to read nil global '..tostring(k),2)endreturnnilendfunctionmt.__newindex(t,k,v)ifk~='arg'thenerror('Tried to write global '..tostring(k),2)endrawset(t,k,v)endsetmetatable(_G,mt)