]> git.mxchange.org Git - friendica-addons.git/commitdiff
add title
authorFriendika <info@friendika.com>
Thu, 8 Sep 2011 04:33:54 +0000 (21:33 -0700)
committerFriendika <info@friendika.com>
Thu, 8 Sep 2011 04:33:54 +0000 (21:33 -0700)
wppost.tgz
wppost/wppost.php

index d18ed64fc8d62a2feb86306e5d5e04ba80ab5027..d79d411b9a3a2714cc84fe38a592ed6ab6bfb24d 100644 (file)
Binary files a/wppost.tgz and b/wppost.tgz differ
index 479ad6f1699a1773fec04f68af59ce1d6ba5877a..9aac6c3801987e3c2fb517ef841d78ef1bda122c 100644 (file)
@@ -136,7 +136,10 @@ function wppost_send(&$a,&$b) {
        if($wp_username && $wp_password && $wp_blog && $wp_post && $wp_enable) {
 
                require_once('include/bbcode.php');
-               $post = xmlify(bbcode($b['body']));
+
+               $post = (($b['title']) ? '<title>' . $b['title'] . '</title>' : '');
+               $post .= bbcode($b['body']);
+                       $post = xmlify($post);
 
                $xml = <<< EOT