Skip to content

Commit

Permalink
Merge pull request #1131 from solarissmoke/bug-twitter-test
Browse files Browse the repository at this point in the history
Twitter "test settings" always reports an error
  • Loading branch information
kamaulynder committed Jun 1, 2013
2 parents 4cfa8d1 + 31c45d9 commit 2dcdc87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/settings/test_twitter.php
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 2dcdc87

Please sign in to comment.