summaryrefslogtreecommitdiff
path: root/modules/blogapi/blogapi.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-16 20:32:32 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-16 20:32:32 +0000
commit5f9bea269c8fa8cf2a5a80efa33297bb3fea1a37 (patch)
tree69876313b6f242f4984f0e1b619b76a8d3cd7478 /modules/blogapi/blogapi.module
parent451821abe7e1f68d53b1818c111832efa8b76f8d (diff)
downloadbrdo-5f9bea269c8fa8cf2a5a80efa33297bb3fea1a37.tar.gz
brdo-5f9bea269c8fa8cf2a5a80efa33297bb3fea1a37.tar.bz2
- Patch #10115 by James: bugfixes:
+ If an array of tb urls is given for mt_tb_ping_urls, the last url actually gets pinged twice. + mt_allow_comments and mt_convert_breaks were not being sent properly in the xmlrpc response for getPost.
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r--modules/blogapi/blogapi.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 1dd636abe..96bb04357 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -603,6 +603,7 @@ function _blogapi_mt_extra(&$node, $struct) {
foreach ($struct['mt_tb_ping_urls'] as $tb_ping_url) {
$node->tb_url = $tb_ping_url->getVal();
trackback_send($node);
+ unset($node->tb_url); // make sure we don't ping twice
}
}
else {
@@ -645,8 +646,8 @@ function _blogapi_get_post($node, $bodies = true) {
$xmlrpcval['content'] = new xmlrpcval("<title>$blog->title</title>$node->body", 'string');
$xmlrpcval['description'] = new xmlrpcval($node->body, 'string');
// Add MT specific fields
- $xmlrpcval['mt_allow_comments'] = $comment;
- $xmlrpcval['mt_convert_breaks'] = $node->format;
+ $xmlrpcval['mt_allow_comments'] = new xmlrpcval($comment, 'string');
+ $xmlrpcval['mt_convert_breaks'] = new xmlrpcval($node->format, 'string');
}
return new xmlrpcval($xmlrpcval, 'struct');