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