]> git.mxchange.org Git - friendica-addons.git/blobdiff - tumblr/tumblr.php
Some notices had been removed / expiring of item related tables in twitter (#643)
[friendica-addons.git] / tumblr / tumblr.php
index 831dd61568ba66f36dbef1fe0d158ef0190d8331..9617a3a0783c4f0506454aaebd94b26846779e8f 100644 (file)
@@ -342,9 +342,6 @@ function tumblr_send(&$a,&$b) {
        $tmbl_blog = 'blog/'.$page.'/post';
 
        if($oauth_token && $oauth_token_secret && $tmbl_blog) {
-
-               require_once('include/bbcode.php');
-
                $tag_arr = [];
                $tags = '';
                $x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
@@ -415,7 +412,7 @@ function tumblr_send(&$a,&$b) {
                        $params['caption'] = '<h1>'.$title."</h1>".
                                                "<p>".$params['caption']."</p>";
 
-               if (trim($params['caption']) == "")
+               if (empty($params['caption']))
                        $params['caption'] = BBCode::convert("[quote]" . $siteinfo["description"] . "[/quote]", false, 4);
 
                $consumer_key = Config::get('tumblr','consumer_key');