diff Main.lua @ 533:2bb33dbd3d7c 7.2.0-4

Removed support and use of LibRealmInfo, which apparently broke in Patch 7.2.0.
author MMOSimca
date Tue, 11 Apr 2017 20:53:22 -0400
parents 4d8f02877b4f
children 4a7989584ae8
line wrap: on
line diff
--- a/Main.lua	Tue Apr 11 20:47:39 2017 -0400
+++ b/Main.lua	Tue Apr 11 20:53:22 2017 -0400
@@ -28,7 +28,6 @@
 
 local deformat = LibStub("LibDeformat-3.0")
 local HereBeDragons = LibStub("HereBeDragons-1.0")
-local LibRealmInfo = LibStub("LibRealmInfo")
 
 local DatamineTT = _G.CreateFrame("GameTooltip", "WDPDatamineTT", _G.UIParent, "GameTooltipTemplate")
 DatamineTT:SetOwner(_G.WorldFrame, "ANCHOR_NONE")
@@ -916,8 +915,8 @@
     local raw_db = _G.WoWDBProfilerData
     local build_num = tonumber(private.build_num)
 
-    -- Get current region from LibRealmInfo (and account for the fact that PTR and Beta return nil)
-    local current_region = LibRealmInfo:GetCurrentRegion() or "XX"
+    -- Get current region from API (flawed)
+    local current_region = _G.GetCurrentRegionName() or "XX"
 
     -- Wipe all data if DB version or build number changed
     if (raw_db.version and raw_db.version < DB_VERSION) or (raw_db.build_num and raw_db.build_num < build_num) then