diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-08-31 11:58:25 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-08-31 11:58:25 -0400 |
commit | f346cbbdeb8502e1cb06a01a184dde7a7f53a087 (patch) | |
tree | a04263b984737edb7d6a91229a8219706bcef6f2 /indra/newview/llpanellogin.cpp | |
parent | 488362b0ac926c51fccf093276ca15d93369c96f (diff) |
Copy sourceid= from create_account_url to login-page URL.
This allows the login-page server to respond to any sourceid= associated with
the create_account_url, which (we happen to know) varies by skin -- e.g. for
the Steam viewer.
Diffstat (limited to 'indra/newview/llpanellogin.cpp')
-rw-r--r-- | indra/newview/llpanellogin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index d787b69b5e..c6bcaeab07 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -771,6 +771,14 @@ void LLPanelLogin::loadLoginPage() // add OS info params["os"] = LLAppViewer::instance()->getOSInfo().getOSStringSimple(); + // sourceid: create_account_url's sourceid= varies by skin + LLURI create_account_url(LLTrans::getString("create_account_url")); + LLSD create_account_params(create_account_url.queryMap()); + if (create_account_params.has("sourceid")) + { + params["sourceid"] = create_account_params["sourceid"]; + } + // Make an LLURI with this augmented info LLURI login_uri(LLURI::buildHTTP(login_page.authority(), login_page.path(), |