For some reason function GetDisplayName() does not work after patch 1.2.3. It breaks saved variables system and few other UI functions.
Farangkao gave me an idea how to fix this issue - just copy&paste this code to the end of any .lua file in the addons folder:
Lua Code:
local displayName = GetDisplayName()
--if display name is invalid
if not IsDecoratedDisplayName(displayName) then
--try to get display name from the saved account name
displayName = DecorateDisplayName(GetCVar("AccountName"))
--if display name is still invalid and player is in the guild, try to get display name from there
if not IsDecoratedDisplayName(displayName) and GetNumGuilds() > 0 then
displayName = DecorateDisplayName(GetGuildMemberInfo(GetGuildId(1), GetPlayerGuildMemberIndex(GetGuildId(1))))
end
--if display name is valid, redefine broken GetDisplayName() function
if IsDecoratedDisplayName(displayName) then
GetDisplayName = function()
return displayName
end
end
end