Quantcast

1.2.1 update for patch 6.2.1

Steven Jackson [06-23-15 - 17:55]
1.2.1 update for patch 6.2.1
Filename
SVUI_Skins/SVUI_Skins.lua
SVUI_Skins/components/blizzard/help.lua
diff --git a/SVUI_Skins/SVUI_Skins.lua b/SVUI_Skins/SVUI_Skins.lua
index e08f75c..f9dd300 100644
--- a/SVUI_Skins/SVUI_Skins.lua
+++ b/SVUI_Skins/SVUI_Skins.lua
@@ -76,7 +76,7 @@ end

 function MOD:Style(style, fn, ...)
 	local pass, catch = pcall(fn, ...)
-	--self.Debugging = true
+	self.Debugging = true
 	if(catch and self.Debugging) then
 		SV:HandleError("SKINS", style, catch);
 		return
diff --git a/SVUI_Skins/components/blizzard/help.lua b/SVUI_Skins/components/blizzard/help.lua
index afad562..18cfa1d 100644
--- a/SVUI_Skins/components/blizzard/help.lua
+++ b/SVUI_Skins/components/blizzard/help.lua
@@ -106,13 +106,16 @@ local function HelpFrameStyle()
 	end
 	SV.API:Set("ScrollBar", HelpFrameKnowledgebaseScrollFrame2ScrollBar)
 	for d = 1, #HelpFrameButtonList do
-		_G[HelpFrameButtonList[d]]:RemoveTextures(true)
-		_G[HelpFrameButtonList[d]]:SetStyle("Button")
-		if _G[HelpFrameButtonList[d]].text then
-			_G[HelpFrameButtonList[d]].text:ClearAllPoints()
-			_G[HelpFrameButtonList[d]].text:SetPoint("CENTER")
-			_G[HelpFrameButtonList[d]].text:SetJustifyH("CENTER")
-		end
+		local bname = HelpFrameButtonList[d]
+		if(bname and _G[bname]) then
+			_G[bname]:RemoveTextures(true)
+			_G[bname]:SetStyle("Button")
+			if _G[bname].text then
+				_G[bname].text:ClearAllPoints()
+				_G[bname].text:SetPoint("CENTER")
+				_G[bname].text:SetJustifyH("CENTER")
+			end
+		end
 	end
 	for d = 1, 6 do
 		local f = _G["HelpFrameButton"..d]