From dc059fc4894636145a7a9304b9e55c0a8fa7b77c Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 17 Feb 2014 19:50:56 -0500 Subject: [PATCH] instance library was a problem that had https://forum.pyrocms.com/discussion/comment/16453/#Comment_16453 thanks Phil :) --- libraries/Provider/Linkedin.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/Provider/Linkedin.php b/libraries/Provider/Linkedin.php index c58229c..f37b207 100644 --- a/libraries/Provider/Linkedin.php +++ b/libraries/Provider/Linkedin.php @@ -41,7 +41,9 @@ public function get_user_info(OAuth_Consumer $consumer, OAuth_Token $token) // Sign the request using the consumer and token $request->sign($this->signature, $consumer, $token); - $user = OAuth_Format::factory($request->execute(), 'xml')->to_array(); + $ci = get_instance(); + $ci->load->library('format'); + $user = $ci->format->factory($request->execute(), 'xml')->to_array(); // Create a response from the request return array( @@ -56,4 +58,4 @@ public function get_user_info(OAuth_Consumer $consumer, OAuth_Token $token) ); } -} // End Provider_Dropbox \ No newline at end of file +} // End Provider_Dropbox