diff options
author | Rider Linden <none@none> | 2015-03-26 16:41:16 -0700 |
---|---|---|
committer | Rider Linden <none@none> | 2015-03-26 16:41:16 -0700 |
commit | b9e80807091aa7a27f1a10a23dd32bbb292d9dfb (patch) | |
tree | c1b4a3ce04e8e3ee1eb2cbd6d2128ea2768fce0a /indra/newview/llagentlanguage.cpp | |
parent | 97b93179692b764aba7eee571f1b557f6f8070db (diff) |
Adding llagentlanguage to new LLCore::Http code moved some of llappearancemgr handling into llAgent.
Diffstat (limited to 'indra/newview/llagentlanguage.cpp')
-rwxr-xr-x | indra/newview/llagentlanguage.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llagentlanguage.cpp b/indra/newview/llagentlanguage.cpp index fe6236a32a..81fce9b257 100755 --- a/indra/newview/llagentlanguage.cpp +++ b/indra/newview/llagentlanguage.cpp @@ -32,6 +32,7 @@ #include "llviewerregion.h" // library includes #include "llui.h" // getLanguage() +#include "httpcommon.h" // static void LLAgentLanguage::init() @@ -69,7 +70,12 @@ bool LLAgentLanguage::update() body["language"] = language; body["language_is_public"] = gSavedSettings.getBOOL("LanguageIsPublic"); - LLHTTPClient::post(url, body, new LLHTTPClient::Responder); + //LLHTTPClient::post(url, body, new LLHTTPClient::Responder); + LLCore::HttpHandle handle = gAgent.requestPostCapibility("UpdateAgentLanguage", url, body); + if (handle == LLCORE_HTTP_HANDLE_INVALID) + { + LL_WARNS() << "Unable to change language." << LL_ENDL; + } } return true; } |