core: change environment handling

This commit is contained in:
shagu
2017-09-25 22:50:09 +02:00
parent f8beab2d55
commit 84cf529e24
3 changed files with 32 additions and 36 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
pfUI.api = { }
local _G = getfenv(0)
local T, C, L = pfUI:LoadEnvironment()
-- load pfUI environment
setfenv(1, pfUI:GetEnvironment())
-- [ strsplit ]
-- Splits a string using a delimiter.