Browse Source

add title

pull/1/head
Friendika 11 years ago
parent
commit
2bf19ae652
  1. BIN
      wppost.tgz
  2. 5
      wppost/wppost.php

BIN
wppost.tgz

Binary file not shown.

5
wppost/wppost.php

@ -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

Loading…
Cancel
Save