Skip to content

Commit

Permalink
Fix twitter test logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
solarissmoke committed May 31, 2013
1 parent 4cfa8d1 commit 31c45d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/settings/test_twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function index()

$connection = new Twitter_Oauth($consumer_key,$consumer_secret,$access_token['oauth_token'],$access_token['oauth_token_secret']);
$connection->decode_json = FALSE;
$verify_credentials = $connection->get('account/verify_credentials');
if ($verify_credentials['code'] == 200)
$connection->get('account/verify_credentials');
if ($connection->http_code == 200)
{
echo json_encode(array("status"=>"success", "message"=>Kohana::lang('ui_main.success')));
}
Expand Down

0 comments on commit 31c45d9

Please sign in to comment.