From: Evan Prodromou Date: Mon, 9 Jul 2012 17:37:33 +0000 (-0400) Subject: Better cache key, httpclient reference in FacebookBridgePlugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=18ebca5b8fa89dfbd4dcbf73185e3c551f57d27a;p=quix0rs-gnu-social.git Better cache key, httpclient reference in FacebookBridgePlugin --- diff --git a/plugins/FacebookBridge/FacebookBridgePlugin.php b/plugins/FacebookBridge/FacebookBridgePlugin.php index 289f219112..64a73ed126 100644 --- a/plugins/FacebookBridge/FacebookBridgePlugin.php +++ b/plugins/FacebookBridge/FacebookBridgePlugin.php @@ -590,7 +590,7 @@ ENDOFSCRIPT; function getFacebookUser($id) { - $key = Cache::key(sprintf("FacebookBridgePlugin:userdata:%d", $id)); + $key = Cache::key(sprintf("FacebookBridgePlugin:userdata:%s", $id)); $c = Cache::instance(); @@ -602,7 +602,7 @@ ENDOFSCRIPT; } $url = sprintf("https://graph.facebook.com/%s", $id); - $client = new HTTP_Client(); + $client = new HTTPClient(); $resp = $client->get($url); if (!$resp->isOK()) {