summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerhome.cpp
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-01-14 14:27:25 +0200
committerVadim Savchuk <vsavchuk@productengine.com>2010-01-14 14:27:25 +0200
commitb278de94c9afe3a5b838b57bd380fd28c04b29f1 (patch)
treeb5da76ed707dff7c93d2f7ad7cf4cf47ec177db8 /indra/newview/llviewerhome.cpp
parente727800829be2ecf236b726b1ec7693a3adad908 (diff)
parent0556c2c047e38d9b5e18cd31b219764c3dc89aa4 (diff)
Merge from default branch.
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llviewerhome.cpp')
-rw-r--r--indra/newview/llviewerhome.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llviewerhome.cpp b/indra/newview/llviewerhome.cpp
index 6299b4fabd..8fdbe0a4ae 100644
--- a/indra/newview/llviewerhome.cpp
+++ b/indra/newview/llviewerhome.cpp
@@ -50,9 +50,18 @@ std::string LLViewerHome::getHomeURL()
LLSD substitution;
substitution["AUTH_TOKEN"] = LLURI::escape(getAuthKey());
- // get the home URL and expand all of the substitutions
- // (also adds things like [LANGUAGE], [VERSION], [OS], etc.)
+ // get the home URL from the settings.xml file
std::string homeURL = gSavedSettings.getString("HomeSidePanelURL");
+
+ // support a grid-level override of the URL from login.cgi
+ LLSD grid_url = LLLoginInstance::getInstance()->getResponse("home_sidetray_url");
+ if (! grid_url.asString().empty())
+ {
+ homeURL = grid_url.asString();
+ }
+
+ // expand all substitution strings in the URL and return it
+ // (also adds things like [LANGUAGE], [VERSION], [OS], etc.)
return LLWeb::expandURLSubstitutions(homeURL, substitution);
}