diff options
author | Steve Clay <steve@mrclay.org> | 2012-08-05 21:03:35 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-08-05 21:03:35 -0400 |
commit | ef351d0cf8a866cb40285e71fe5ed2b980bd11ed (patch) | |
tree | 7e5c43f03e2b2a4d13e6cee3a7e850b3ad811597 /mod/twitter_api/start.php | |
parent | 0a0203a418a082a38c5c700ea11377153fa37555 (diff) | |
download | elgg-ef351d0cf8a866cb40285e71fe5ed2b980bd11ed.tar.gz elgg-ef351d0cf8a866cb40285e71fe5ed2b980bd11ed.tar.bz2 |
Fixes #4764: Twitter login supports persistent and referrer forwarding
Diffstat (limited to 'mod/twitter_api/start.php')
-rw-r--r-- | mod/twitter_api/start.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/twitter_api/start.php b/mod/twitter_api/start.php index 08bce5479..e6221de6b 100644 --- a/mod/twitter_api/start.php +++ b/mod/twitter_api/start.php @@ -20,6 +20,7 @@ function twitter_api_init() { //elgg_extend_view('metatags', 'twitter_api/metatags'); elgg_extend_view('css/elgg', 'twitter_api/css'); elgg_extend_view('css/admin', 'twitter_api/css'); + elgg_extend_view('js/elgg', 'twitter_api/js'); // sign on with twitter if (twitter_api_allow_sign_on_with_twitter()) { @@ -60,7 +61,7 @@ function twitter_api_pagehandler_deprecated($page) { * Serves pages for twitter. * * @param array $page - * @return void + * @return bool */ function twitter_api_pagehandler($page) { if (!isset($page[0])) { @@ -131,14 +132,15 @@ function twitter_api_tweet($hook, $type, $returnvalue, $params) { // send tweet $api = new TwitterOAuth($consumer_key, $consumer_secret, $access_key, $access_secret); - $response = $api->post('statuses/update', array('status' => $params['message'])); + $api->post('statuses/update', array('status' => $params['message'])); } /** * Get tweets for a user. * - * @param int $user_id The Elgg user GUID + * @param int $user_guid The Elgg user GUID * @param array $options + * @return array */ function twitter_api_fetch_tweets($user_guid, $options = array()) { // check admin settings @@ -167,6 +169,7 @@ function twitter_api_fetch_tweets($user_guid, $options = array()) { * @param string $type * @param array $return_value * @param array $params + * @return array */ function twitter_api_public_pages($hook, $type, $return_value, $params) { $return_value[] = 'twitter_api/forward'; |