Skip to content
Permalink
Browse files

[core:func] change for TwitterOAuth

  • Loading branch information
nao-pon committed Feb 5, 2014
1 parent 63c8d12 commit b99f1a7bc21c9fa99ff91006b31e9de4330c6cdc
Showing with 2 additions and 2 deletions.
  1. +2 −2 xoops_trust_path/modules/xpwiki/class/func/xpwiki_func.php
@@ -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));
}
}

0 comments on commit b99f1a7

Please sign in to comment.
You can’t perform that action at this time.