From 18ebca5b8fa89dfbd4dcbf73185e3c551f57d27a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 9 Jul 2012 13:37:33 -0400 Subject: [PATCH] Better cache key, httpclient reference in FacebookBridgePlugin --- plugins/FacebookBridge/FacebookBridgePlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) { -- 2.39.5