From: friendica Date: Sun, 13 Nov 2011 23:49:19 +0000 (-0800) Subject: default title for wppost X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e031a5209cc00c221faabfbcad752e1ed066b793;p=friendica-addons.git default title for wppost --- diff --git a/wppost.tgz b/wppost.tgz index c76b4138..43bc6f26 100644 Binary files a/wppost.tgz and b/wppost.tgz differ diff --git a/wppost/wppost.php b/wppost/wppost.php index 235aa823..d0e48b73 100644 --- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -168,9 +168,9 @@ function wppost_send(&$a,&$b) { require_once('include/bbcode.php'); - $post = (($b['title']) ? '' . $b['title'] . '' : ''); - $post .= bbcode($b['body']); - $post = xmlify($post); + $title = '' . (($b['title']) ? $b['title'] : t('Post from Friendica')) . ''; + $post = $title . bbcode($b['body']); + $post = xmlify($post); $xml = <<< EOT