summaryrefslogtreecommitdiff
path: root/indra/newview/llavataractions.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2010-10-12 08:43:16 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2010-10-12 08:43:16 -0400
commit993136fe347075b71f649ec70ce1a463afb073f8 (patch)
treecd2729ca91aac104fb7a13493b015b1955957948 /indra/newview/llavataractions.cpp
parent48c2b2496d3ed6aeeebb0bc8950725f8ef7e305f (diff)
Initial hooks for web profiles support
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rw-r--r--indra/newview/llavataractions.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp
index 79b0c63b38..42701bcff9 100644
--- a/indra/newview/llavataractions.cpp
+++ b/indra/newview/llavataractions.cpp
@@ -59,6 +59,7 @@
#include "llrecentpeople.h"
#include "llsidetray.h"
#include "lltrans.h"
+#include "llviewercontrol.h"
#include "llviewerobjectlist.h"
#include "llviewermessage.h" // for handle_lure
#include "llviewerregion.h"
@@ -314,6 +315,22 @@ void LLAvatarActions::showProfile(const LLUUID& id)
params["id"] = id;
params["open_tab_name"] = "panel_profile";
+ // PROFILES: open in webkit window
+ std::string first_name,last_name;
+ if (gCacheName->getName(id,first_name,last_name))
+ {
+ llinfos << "opening web profile for " << first_name << "." << last_name << llendl;
+ std::string url = gSavedSettings.getString("WebProfileURL");
+ LLSD subs;
+ subs["AGENT_NAME"] = first_name + "." + last_name;
+ url = LLWeb::expandURLSubstitutions(url,subs);
+ LLWeb::loadURL(url);
+ }
+ else
+ {
+ llwarns << "no name info for agent id " << id << llendl;
+ }
+#if 0
//Show own profile
if(gAgent.getID() == id)
{
@@ -324,6 +341,7 @@ void LLAvatarActions::showProfile(const LLUUID& id)
{
LLSideTray::getInstance()->showPanel("panel_profile_view", params);
}
+#endif
}
}