# HG changeset patch # User Farmbuyer of US-Kilrogg # Date 1319232878 0 # Node ID 47949f8eb7839e0c72e2f85c0c06407d8be32f0b # Parent 7d27427278690b7df65062f6783f2408f42e0919 Passing in data field for StaticPopup_Show must be done earlier. diff -r 7d2742727869 -r 47949f8eb783 core.lua --- a/core.lua Mon Oct 10 20:49:07 2011 +0000 +++ b/core.lua Fri Oct 21 21:34:38 2011 +0000 @@ -216,9 +216,10 @@ if arg == 'openloot' then addon:BuildMainDisplay() elseif arg == 'popupurl' then - local dialog = StaticPopup_Show "OUROL_URL" - -- Sadly, this is not generated by the packager, so hardcode it for now - dialog.data = [[http://wow.curse.com/downloads/wow-addons/details/ouroloot.aspx]] + -- Sadly, this is not generated by the packager, so hardcode it for now. + -- The 'data' field is handled differently for onshow than for other callbacks. + StaticPopup_Show("OUROL_URL", --[[text_arg1=]]nil, --[[text_arg2=]]nil, + --[[data=]][[http://www.curse.com/addons/wow/ouroloot]]) elseif arg == 'doping' then addon:DoPing() elseif arg == 'help' then