summaryrefslogtreecommitdiff
path: root/indra/newview/llfacebookconnect.cpp
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-08-02 14:42:20 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2013-08-02 14:42:20 -0700
commitd354acb6cdd9d9433b871349e4e7c21e9eb3490d (patch)
tree298cd54d7e38389dd49216f9e5fbfb03fe303b6b /indra/newview/llfacebookconnect.cpp
parent1abafdc8b5bf0197b2a3586737d461140e07e994 (diff)
parent5728cc8d6fe315e2234f77f4c079b60ffaa7f8db (diff)
merge
Diffstat (limited to 'indra/newview/llfacebookconnect.cpp')
-rw-r--r--indra/newview/llfacebookconnect.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/indra/newview/llfacebookconnect.cpp b/indra/newview/llfacebookconnect.cpp
index dbebe8d14a..e4ac2a4960 100644
--- a/indra/newview/llfacebookconnect.cpp
+++ b/indra/newview/llfacebookconnect.cpp
@@ -40,6 +40,7 @@
#include "llimagejpeg.h"
#include "lltrans.h"
#include "llevents.h"
+#include "llviewerregion.h"
#include "llfloaterwebcontent.h"
#include "llfloaterreg.h"
@@ -64,7 +65,7 @@ void toast_user_for_success()
{
LLSD args;
args["MESSAGE"] = LLTrans::getString("facebook_post_success");
- LLNotificationsUtil::add("SystemMessage", args);
+ LLNotificationsUtil::add("FacebookConnect", args);
}
///////////////////////////////////////////////////////////////////////////////
@@ -339,13 +340,21 @@ void LLFacebookConnect::openFacebookWeb(std::string url)
std::string LLFacebookConnect::getFacebookConnectURL(const std::string& route)
{
- //TODO GIL : Remove this code along with extern and llcontrol.h header
+ static std::string sFacebookConnectUrl = gAgent.getRegion()->getCapability("FacebookConnect");
+
+ //*TODO : Remove this code along with extern and llcontrol.h header
std::string host = gSavedSettings.getString("SLShareHost");
- //static std::string sFacebookConnectUrl = gAgent.getRegion()->getCapability("FacebookConnect");
- static std::string sFacebookConnectUrl = host + "/fbc/agent/" + gAgentID.asString(); // TEMPORARY HACK FOR FB DEMO - Cho
+ if (!host.empty())
+ {
+ sFacebookConnectUrl = host + "/fbc/agent/" + gAgentID.asString(); // TEMPORARY HACK FOR FB DEMO - Cho
+ }
+ else
+ {
+ sFacebookConnectUrl = gAgent.getRegion()->getCapability("FacebookConnect");
+ }
+ //End removable part
std::string url = sFacebookConnectUrl + route;
- llinfos << url << llendl;
return url;
}