EXT-4340: Add "debug" flag to Help URL in god mode.

meow-7.2.2
Lynx Linden 2010-01-14 23:28:37 +00:00
parent 86d1b0b67e
commit e1e11ca7e3
3 changed files with 5 additions and 2 deletions

View File

@ -1766,9 +1766,10 @@ if (LL_TESTS)
llagentaccess.cpp
lldateutil.cpp
llmediadataclient.cpp
llviewerhelputil.cpp
lllogininstance.cpp
)
# DISABLED TEST: llviewerhelputil.cpp /* not testing anything useful and hard to mock LLAgent dependency */
##################################################
# DISABLING PRECOMPILED HEADERS USAGE FOR TESTS
##################################################

View File

@ -3607,7 +3607,7 @@
<key>Type</key>
<string>String</string>
<key>Value</key>
<string>http://viewer-help.secondlife.com/[LANGUAGE]/[CHANNEL]/[VERSION]/[TOPIC]</string>
<string>http://viewer-help.secondlife.com/[LANGUAGE]/[CHANNEL]/[VERSION]/[TOPIC]/[DEBUG_MODE]</string>
</map>
<key>HomeSidePanelURL</key>
<map>

View File

@ -34,6 +34,7 @@
#include "llviewerprecompiledheaders.h"
#include "llviewerhelputil.h"
#include "llagent.h"
#include "llsd.h"
#include "llstring.h"
#include "lluri.h"
@ -63,6 +64,7 @@ std::string LLViewerHelpUtil::buildHelpURL( const std::string &topic)
{
LLSD substitution;
substitution["TOPIC"] = helpURLEncode(topic);
substitution["DEBUG_MODE"] = gAgent.isGodlike() ? "debug" : "";
// get the help URL and expand all of the substitutions
// (also adds things like [LANGUAGE], [VERSION], [OS], etc.)