@@ -12,6 +12,7 @@ local tinsert, ipairs, pairs, wipe, sort, gsub = tinsert, ipairs, pairs, wipe, s
12
12
local tostring , strfind , strsplit = tostring , strfind , strsplit
13
13
local hooksecurefunc = hooksecurefunc
14
14
15
+ local GetCurrencyListInfo = GetCurrencyListInfo
15
16
local CloseDropDownMenus = CloseDropDownMenus
16
17
local CreateFrame = CreateFrame
17
18
local GetNumSpecializations = GetNumSpecializations
@@ -857,7 +858,13 @@ function DT:CURRENCY_DISPLAY_UPDATE(_, currencyID)
857
858
end
858
859
859
860
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
861
868
end
862
869
863
870
function DT :CurrencyInfo (id )
@@ -867,7 +874,11 @@ function DT:CurrencyInfo(id)
867
874
end
868
875
869
876
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
871
882
872
883
return info , info and info .name
873
884
end
0 commit comments