From 3a9612fb358766e46b83a7df72ee9b46202d1b70 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 29 Jan 2018 10:42:12 -0500 Subject: [PATCH] Upgrade yet more calls with TwitterOAuth --- twitter/twitter.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 8b483c9ea..bca5e7db7 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -298,17 +298,17 @@ function twitter_settings(App $a, &$s) * account at Twitter. */ $connection = new TwitterOAuth($ckey, $csecret); - $request_token = $connection->url('oauth/request_token', ['oauth_callback' => 'oob']); + $result = $connection->oauth('oauth/request_token', ['oauth_callback' => 'oob']); /* * * * make some nice form */ $s .= '

' . L10n::t('At this Friendica instance the Twitter addon was enabled but you have not yet connected your account to your Twitter account. To do so click the button below to get a PIN from Twitter which you have to copy into the input box below and submit the form. Only your public posts will be posted to Twitter.') . '

'; - $s .= '' . L10n::t('Log in with Twitter') . ''; + $s .= '' . L10n::t('Log in with Twitter') . ''; $s .= '
'; $s .= ''; $s .= ''; - $s .= ''; - $s .= ''; + $s .= ''; + $s .= ''; $s .= '
'; $s .= '
'; } else {