]> git.mxchange.org Git - friendica-addons.git/commitdiff
default title for wppost
authorfriendica <info@friendica.com>
Sun, 13 Nov 2011 23:49:19 +0000 (15:49 -0800)
committerfriendica <info@friendica.com>
Sun, 13 Nov 2011 23:49:19 +0000 (15:49 -0800)
wppost.tgz
wppost/wppost.php

index c76b41380f0656ec335c556fcf4863f50001e2fc..43bc6f26e836faad81d71cfb7e28712002a66625 100644 (file)
Binary files a/wppost.tgz and b/wppost.tgz differ
index 235aa823411f94f01c5a9aab2ae0fe11f36a3ca4..d0e48b73e658d62c90fef0d84d6244ae3bb06661 100644 (file)
@@ -168,9 +168,9 @@ function wppost_send(&$a,&$b) {
 
                require_once('include/bbcode.php');
 
-               $post = (($b['title']) ? '<title>' . $b['title'] . '</title>' : '');
-               $post .= bbcode($b['body']);
-                       $post = xmlify($post);
+               $title = '<title>' . (($b['title']) ? $b['title'] : t('Post from Friendica')) . '</title>';
+               $post = $title . bbcode($b['body']);
+               $post = xmlify($post);
 
                $xml = <<< EOT