Browse Source

default title for wppost

pull/1/merge
friendica 11 years ago
parent
commit
e031a5209c
  1. BIN
      wppost.tgz
  2. 6
      wppost/wppost.php

BIN
wppost.tgz

Binary file not shown.

6
wppost/wppost.php

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

Loading…
Cancel
Save