The function ZO_WorldMap_GetMapTitle is leaking the variable
title into global namespace (worldmap.lua:5185).
Lua Code:
function ZO_WorldMap_GetMapTitle()
local titleText
local mapName = GetMapName()
local dungeonDifficulty = ZO_WorldMap_GetMapDungeonDifficulty()
if dungeonDifficulty == DUNGEON_DIFFICULTY_NONE then
title = zo_strformat(SI_WINDOW_TITLE_WORLD_MAP, mapName)
else
title = zo_strformat(SI_WINDOW_TITLE_WORLD_MAP_WITH_DUNGEON_DIFFICULTY, mapName, GetString("SI_DUNGEONDIFFICULTY", dungeonDifficulty))
end
return title
end
Should have been titleText instead.