mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
add global _G
CVar ScriptError -> ShowErrors
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
_G = getfenv()
|
||||
|
||||
--Cache global variables
|
||||
local strmatch = strmatch
|
||||
--WoW API
|
||||
@@ -14,7 +16,7 @@ function _ERRORMESSAGE_NEW(message)
|
||||
LoadAddOn("!DebugTools")
|
||||
local loaded = IsAddOnLoaded("!DebugTools")
|
||||
|
||||
if (GetCVar("scriptErrors") == "1") then
|
||||
if (GetCVar("ShowErrors") == "1") then
|
||||
if (not loaded or DEBUG_DEBUGTOOLS) then
|
||||
ScriptErrors_Message:SetText(message)
|
||||
ScriptErrors:Show()
|
||||
|
||||
Reference in New Issue
Block a user