GetAddOnMetadata replaced in 11.0.2
lakhpache opened this issue ยท 1 comments
GetAddonMetadata function has been removed & replaced with C_AddOns.GetAddonMetadata
The two functions are basically identical - you can do a search & replace of the three instances of the function in SettingsPanel.lua and Favorite Contacts will work again with no problems.
But without the change it's not possible to alter settings & the addon throws up the following bugsack error:
32x FavoriteContacts/SettingsPanel.lua:141: attempt to call global 'GetAddOnMetadata' (a nil value) [string "@FavoriteContacts/SettingsPanel.lua"]:141: in function <FavoriteContacts/SettingsPanel.lua:140> [string "@FavoriteContacts/SettingsPanel.lua"]:223: in function <FavoriteContacts/SettingsPanel.lua:222> [string "=[C]"]: ? [string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:144: in function <...eBlizzard_SharedXMLBase/CallbackRegistry.lua:143> [string "=[C]"]: ? [string "@Blizzard_SharedXMLBase/CallbackRegistry.lua"]:147: in function TriggerEvent'
[string "@FavoriteContacts/FavoriteContacts.lua"]:114: in function <FavoriteContacts/FavoriteContacts.lua:112>
Locals:
(*temporary) = nil
(*temporary) = "FavoriteContacts"
(*temporary) = "Title"
(*temporary) = "attempt to call global 'GetAddOnMetadata' (a nil value)"
ADDON_NAME = "FavoriteContacts"
AceGUI =
objPools =
}
WidgetBase =
}
counts =
}
LayoutRegistry =
}
tooltip = AceGUITooltip {
}
WidgetRegistry =
}
WidgetVersions =
}
WidgetContainerBase =
}
}
ADDON =
CONTACT_BUTTON_SIZE = 36
L =
}
settings =
}
CONTACT_BUTTON_MARGIN = 3
Events =
}
iconFiles =
}
}`