]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Better cache key, httpclient reference in FacebookBridgePlugin
authorEvan Prodromou <evan@status.net>
Mon, 9 Jul 2012 17:37:33 +0000 (13:37 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 9 Jul 2012 17:37:33 +0000 (13:37 -0400)
plugins/FacebookBridge/FacebookBridgePlugin.php

index 289f219112a9e78645a4c77f6dd7f92f5c58b5a6..64a73ed126adb023df09f5e4868f8f5b83da7612 100644 (file)
@@ -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()) {