aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter_api/lib
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-24 15:43:07 -0400
committercash <cash.costello@gmail.com>2011-06-24 15:43:07 -0400
commit5dccec8307cc0a1a4fde99209de42dd6ff13fd25 (patch)
treee216ec60dd66c94d3eb3278410c785aaebb22074 /mod/twitter_api/lib
parentf44e7b8a6bad84423cf0e3dae700675c037d2d51 (diff)
downloadelgg-5dccec8307cc0a1a4fde99209de42dd6ff13fd25.tar.gz
elgg-5dccec8307cc0a1a4fde99209de42dd6ff13fd25.tar.bz2
fixed the post to twitter capability - was not loading the twitter oauth class
Diffstat (limited to 'mod/twitter_api/lib')
-rw-r--r--mod/twitter_api/lib/twitter_api.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/mod/twitter_api/lib/twitter_api.php b/mod/twitter_api/lib/twitter_api.php
index 145b37114..18855862e 100644
--- a/mod/twitter_api/lib/twitter_api.php
+++ b/mod/twitter_api/lib/twitter_api.php
@@ -81,9 +81,6 @@ function twitter_api_login() {
forward();
} else {
- // need Twitter account credentials
- elgg_load_library('twitter_oauth');
-
$consumer_key = elgg_get_plugin_setting('consumer_key', 'twitter_api');
$consumer_secret = elgg_get_plugin_setting('consumer_secret', 'twitter_api');
$api = new TwitterOAuth($consumer_key, $consumer_secret, $token['oauth_token'], $token['oauth_token_secret']);
@@ -286,7 +283,6 @@ function twitter_api_revoke() {
*/
function twitter_api_get_authorize_url($callback = NULL, $login = true) {
global $SESSION;
- elgg_load_library('twitter_oauth');
$consumer_key = elgg_get_plugin_setting('consumer_key', 'twitter_api');
$consumer_secret = elgg_get_plugin_setting('consumer_secret', 'twitter_api');
@@ -311,7 +307,6 @@ function twitter_api_get_authorize_url($callback = NULL, $login = true) {
*/
function twitter_api_get_access_token($oauth_verifier = FALSE) {
global $SESSION;
- elgg_load_library('twitter_oauth');
$consumer_key = elgg_get_plugin_setting('consumer_key', 'twitter_api');
$consumer_secret = elgg_get_plugin_setting('consumer_secret', 'twitter_api');