diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-10-16 21:13:25 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-10-16 21:13:25 -0400 |
commit | ad4102db1b0b6730d6d1fe7119cab2149bb48e2c (patch) | |
tree | df004e36e262dd735aa4be71266065992fa2c30e | |
parent | 50c633bf3502c64ec486f62e9b3f55b411dee4b4 (diff) |
LLPanelLogin::loadLoginPage() can now use "sourceid" settings var.
Previously we borrowed the sourceid= param value from create_account_url,
which we "happened to know" was overridden with the sourceid of interest. Now
that we have a settings variable that directly captures sourceid, though, much
more straightforward to use that.
-rw-r--r-- | indra/newview/llpanellogin.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index c6bcaeab07..58e9a6b342 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -771,13 +771,8 @@ 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"]; - } + // sourceid + params["sourceid"] = gSavedSettings.getString("sourceid"); // Make an LLURI with this augmented info LLURI login_uri(LLURI::buildHTTP(login_page.authority(), |