Skip to content

Commit b99f1a7

Browse files
committed
[core:func] change for TwitterOAuth
1 parent 63c8d12 commit b99f1a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xoops_trust_path/modules/xpwiki/class/func/xpwiki_func.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2919,8 +2919,8 @@ function twitter_update($msg, $page = '', $convert = TRUE) {
29192919

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

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

0 commit comments

Comments
 (0)