Skip to content

Commit

Permalink
[core:func] change for TwitterOAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Feb 5, 2014
1 parent 63c8d12 commit b99f1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xoops_trust_path/modules/xpwiki/class/func/xpwiki_func.php
Original file line number Diff line number Diff line change
Expand Up @@ -2919,8 +2919,8 @@ function twitter_update($msg, $page = '', $convert = TRUE) {

$msg = mb_convert_encoding($msg, 'UTF-8', $this->cont['SOURCE_ENCODING']);

$to = new TwitterOAuth($this->root->twitter_consumer_key, $this->root->twitter_consumer_secret, $user_pref['twitter_access_token'], $user_pref['twitter_access_token_secret']);
$to->OAuthRequest('http://api.twitter.com/1.1/statuses/update.json', 'POST', array('status' => $msg));
$connection = new TwitterOAuth($this->root->twitter_consumer_key, $this->root->twitter_consumer_secret, $user_pref['twitter_access_token'], $user_pref['twitter_access_token_secret']);
$connection->post('statuses/update', array('status' => $msg));
}
}

Expand Down

0 comments on commit b99f1a7

Please sign in to comment.