From 958a4ab9c86bf7a11fc09207519fe518460ac037 Mon Sep 17 00:00:00 2001 From: Vijaysinh Parmar Date: Fri, 11 Dec 2020 19:54:18 +0530 Subject: [PATCH] Removed unwanted function parameter Its giving error for $requestMethod variable. I have checked public function buildOauth($url) in twitter-api-oauth.php file . there also only one parameter was mentioned. --- _includes/twitter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/twitter.php b/_includes/twitter.php index 62f8082..d1da708 100644 --- a/_includes/twitter.php +++ b/_includes/twitter.php @@ -41,7 +41,7 @@ $twitter = new TwitterAPITimeline($settings); $json = $twitter->setGetfield($getfield) // Note: Set the GET field BEFORE calling buildOauth() - ->buildOauth($url, $requestMethod) + ->buildOauth($url) ->performRequest(); $twitter_data = json_decode($json, true); // Create an array with the fetched JSON data @@ -206,4 +206,4 @@ function formatTweet($tweet) { echo ''; # echo $json; // Uncomment this line to view the entire JSON array. Helpful: http://www.freeformatter.com/json-formatter.html -?> \ No newline at end of file +?>