add title

This commit is contained in:
Friendika 2011-09-07 21:33:54 -07:00
parent 40a8b4d13f
commit 2bf19ae652
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View 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