core: replace remaining getglobals in favor of _G

This commit is contained in:
shagu
2019-04-06 14:30:31 +02:00
parent 85975eaee1
commit d7c64d7d0a
8 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -388,7 +388,7 @@ pfUI:RegisterModule("loot", function ()
pfUI.loot:RemoveMasterlootMenus() -- remove then add to ensure no duplicate menus
pfUI.loot:AddMasterLootMenus()
hooksecurefunc("UnitPopup_OnClick",function()
local dropdownFrame = getglobal(UIDROPDOWNMENU_INIT_MENU)
local dropdownFrame = _G[UIDROPDOWNMENU_INIT_MENU]
if not dropdownFrame then return end
local button = this.value
local unit = dropdownFrame.unit
@@ -401,7 +401,7 @@ pfUI:RegisterModule("loot", function ()
end
end)
hooksecurefunc("UnitPopup_HideButtons",function()
local dropdownFrame = getglobal(UIDROPDOWNMENU_INIT_MENU)
local dropdownFrame = _G[UIDROPDOWNMENU_INIT_MENU]
local unit = dropdownFrame.unit
local name = dropdownFrame.name
for index,value in pairs(UnitPopupMenus[dropdownFrame.which]) do