Skip to content
Snippets Groups Projects
Commit 0c607a6b authored by Lynx Linden's avatar Lynx Linden
Browse files

DEV-43679: Pass god mode through to search.

The state of gAgent.isGodlike() is now passed through to the Search
web pages via a new g=[0|1] query parameter.
parent 98111a40
No related branches found
No related tags found
No related merge requests found
...@@ -144,6 +144,10 @@ void LLFloaterSearch::search(const LLSD &key) ...@@ -144,6 +144,10 @@ void LLFloaterSearch::search(const LLSD &key)
// add the current localization information // add the current localization information
url += "&lang=" + LLUI::getLanguage(); url += "&lang=" + LLUI::getLanguage();
// add the user's god status
std::string godlike = gAgent.isGodlike() ? "1" : "0";
url += "&g=" + godlike;
// and load the URL in the web view // and load the URL in the web view
mBrowser->navigateTo(url); mBrowser->navigateTo(url);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment