summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerhome.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2010-02-24 18:28:19 -0800
committerRoxie Linden <roxie@lindenlab.com>2010-02-24 18:28:19 -0800
commita9867b6437efd07ef9b18315d61155bd10860e13 (patch)
treed059f1d6a6809acbedd5ba2ea72c4f88acee2b1b /indra/newview/llviewerhome.cpp
parent6bb43e1369d957a041c796120e87a89ff3fa10ee (diff)
parent8a2404fa3341db0bd7a60459e008b8a3c6afad03 (diff)
Automated merge
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);
}