summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLynx Linden <lynx@lindenlab.com>2009-12-08 10:51:33 +0000
committerLynx Linden <lynx@lindenlab.com>2009-12-08 10:51:33 +0000
commit57769268076a1a01b730dfcdb4a0552bc15c44fe (patch)
treec04702e6b0b22917851598468c125cb9e7d9ee34
parentda2a0385ae6ee8962ed5d4f991df95df13d8e89a (diff)
DEV-43439: Added support for GRID substitution variable.
The Home side panel URL, specified in settings.xml, now additionally supports a [GRID] substitution variable, with potential values equal to: "None", "Agni", "Aditi", etc.
-rw-r--r--indra/newview/llviewerhelputil.cpp19
-rw-r--r--indra/newview/llviewerhome.cpp2
2 files changed, 7 insertions, 14 deletions
diff --git a/indra/newview/llviewerhelputil.cpp b/indra/newview/llviewerhelputil.cpp
index 2642b2378e..0a03012af6 100644
--- a/indra/newview/llviewerhelputil.cpp
+++ b/indra/newview/llviewerhelputil.cpp
@@ -32,23 +32,14 @@
*/
#include "llviewerprecompiledheaders.h"
+#include "llviewerhelputil.h"
-#include "llversionviewer.h"
-#include "llviewerversion.h"
-
-//#include "llfloaterhelpbrowser.h"
-//#include "llfloaterreg.h"
-//#include "llfocusmgr.h"
-//#include "llviewercontrol.h"
-//#include "llappviewer.h"
-
+#include "llcontrol.h"
#include "llstring.h"
-#include "lluri.h"
#include "llsys.h"
-
-#include "llcontrol.h"
-
-#include "llviewerhelputil.h"
+#include "lluri.h"
+#include "llversionviewer.h"
+#include "llviewerversion.h"
//////////////////////////////////////////////
diff --git a/indra/newview/llviewerhome.cpp b/indra/newview/llviewerhome.cpp
index ee1e46dc59..4556c3c5b1 100644
--- a/indra/newview/llviewerhome.cpp
+++ b/indra/newview/llviewerhome.cpp
@@ -40,6 +40,7 @@
#include "llsd.h"
#include "llviewerversion.h"
#include "llviewercontrol.h"
+#include "llviewernetwork.h"
//static
std::string LLViewerHome::getHomeURL()
@@ -52,6 +53,7 @@ std::string LLViewerHome::getHomeURL()
substitution["CHANNEL"] = LLURI::escape(gSavedSettings.getString("VersionChannelName"));
substitution["LANGUAGE"] = LLUI::getLanguage();
substitution["AUTH_KEY"] = LLURI::escape(getAuthKey());
+ substitution["GRID"] = LLViewerLogin::getInstance()->getGridLabel();
std::string homeURL = gSavedSettings.getString("HomeSidePanelURL");
LLStringUtil::format(homeURL, substitution);