Skip to content
Snippets Groups Projects
Commit d2b7d7c5 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #24030 by James: category selection does not work with Movable Type blogapi.

  Not committing to HEAD -- needs a better fix.
parent f352e9ee
No related branches found
No related tags found
No related merge requests found
...@@ -443,6 +443,10 @@ function blogapi_publish_post($req_params) { ...@@ -443,6 +443,10 @@ function blogapi_publish_post($req_params) {
return blogapi_error(message_access()); return blogapi_error(message_access());
} }
$terms = module_invoke('taxonomy', 'node_get_terms', $node->nid, 'tid');
foreach ($terms as $term) {
$node->taxonomy[] = $term->tid;
}
node_save($node); node_save($node);
return new xmlrpcresp(new xmlrpcval(true, 'boolean')); return new xmlrpcresp(new xmlrpcval(true, 'boolean'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment