X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tumblr%2Ftumblr.php;h=5685ed4b3bf02fc0e7e2fed2e45e78fea5acf828;hb=dd08a0164894ef192111a3fc20124797ab8eee15;hp=619ff16e807f43611f6b7af7c963adca9372da99;hpb=e60a9e61fd25726578ee97656d56963c728ad5a5;p=friendica-addons.git diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index 619ff16e..5685ed4b 100644 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -143,7 +143,7 @@ function tumblr_callback($a) { // It'll need our Consumer Key and Secret as well as our Request Token and Secret $tum_oauth = new TumblrOAuth($consumer_key, $consumer_secret, $_SESSION['request_token'], $_SESSION['request_token_secret']); - // Ok, let's get an Access Token. We'll need to pass along our oauth_verifier which was given to us in the URL. + // Ok, let's get an Access Token. We'll need to pass along our oauth_verifier which was given to us in the URL. $access_token = $tum_oauth->getAccessToken($_REQUEST['oauth_verifier']); // We're done with the Request Token and Secret so let's remove those. @@ -227,7 +227,7 @@ function tumblr_settings(&$a,&$s) { $oauth_token_secret = get_pconfig(local_user(), "tumblr", "oauth_token_secret"); $s .= '
'; - if (($oauth_token != "") and ($oauth_token_secret != "")) { + if (($oauth_token != "") && ($oauth_token_secret != "")) { $page = get_pconfig(local_user(),'tumblr','page'); $consumer_key = get_config('tumblr','consumer_key'); @@ -350,7 +350,7 @@ function tumblr_send(&$a,&$b) { if (!isset($siteinfo["type"])) $siteinfo["type"] = ""; - if (($title == "") AND isset($siteinfo["title"])) + if (($title == "") && isset($siteinfo["title"])) $title = $siteinfo["title"]; if (isset($siteinfo["text"])) @@ -391,7 +391,7 @@ function tumblr_send(&$a,&$b) { break; } - if (isset($params['caption']) AND (trim($title) != "")) + if (isset($params['caption']) && (trim($title) != "")) $params['caption'] = '

'.$title."

". "

".$params['caption']."

";