ACME-905 : Get the FacebookConnect cap each time we need it (it's not that much)

meow-7.2.2
Merov Linden 2013-09-06 18:26:21 -07:00
parent fcdd0e578c
commit bf22b7150d
1 changed files with 3 additions and 3 deletions

View File

@ -356,9 +356,9 @@ void LLFacebookConnect::openFacebookWeb(std::string url)
std::string LLFacebookConnect::getFacebookConnectURL(const std::string& route, bool include_read_from_master)
{
static std::string sFacebookConnectUrl = gAgent.getRegion()->getCapability("FacebookConnect");
std::string url = sFacebookConnectUrl + route;
std::string url = gAgent.getRegion()->getCapability("FacebookConnect");
url += route;
if (include_read_from_master && mReadFromMaster)
{
url += "?read_from_master=true";