Skip to content

Commit 49863d4

Browse files
committed
put these two back
1 parent 97add6a commit 49863d4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

ElvUI/Core/Modules/DataTexts/DataTexts.lua

+13-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ local tinsert, ipairs, pairs, wipe, sort, gsub = tinsert, ipairs, pairs, wipe, s
1212
local tostring, strfind, strsplit = tostring, strfind, strsplit
1313
local hooksecurefunc = hooksecurefunc
1414

15+
local GetCurrencyListInfo = GetCurrencyListInfo
1516
local CloseDropDownMenus = CloseDropDownMenus
1617
local CreateFrame = CreateFrame
1718
local GetNumSpecializations = GetNumSpecializations
@@ -857,7 +858,13 @@ function DT:CURRENCY_DISPLAY_UPDATE(_, currencyID)
857858
end
858859

859860
function DT:CurrencyListInfo(index)
860-
return C_CurrencyInfo_GetCurrencyListInfo(index) or {}
861+
local info = E.Retail and C_CurrencyInfo_GetCurrencyListInfo(index) or {}
862+
863+
if E.Cata then
864+
info.name, info.isHeader, info.isHeaderExpanded, info.isUnused, info.isWatched, info.quantity, info.iconFileID, info.maxQuantity, info.weeklyMax, info.earnedThisWeek, info.isTradeable, info.itemID = GetCurrencyListInfo(index)
865+
end
866+
867+
return info
861868
end
862869

863870
function DT:CurrencyInfo(id)
@@ -867,7 +874,11 @@ function DT:CurrencyInfo(id)
867874
end
868875

869876
function DT:BackpackCurrencyInfo(index)
870-
local info = GetBackpackCurrencyInfo(index) or {}
877+
local info = E.Retail and GetBackpackCurrencyInfo(index) or {}
878+
879+
if E.Cata then
880+
info.name, info.quantity, info.iconFileID, info.currencyTypesID = GetBackpackCurrencyInfo(index)
881+
end
871882

872883
return info, info and info.name
873884
end

0 commit comments

Comments
 (0)