summaryrefslogtreecommitdiff
path: root/modules/blogapi
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-31 13:52:47 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-31 13:52:47 +0000
commit16051d46a94f360db508fc1fce436fa718f70e20 (patch)
tree2662ce194983bab900e600aff3c6fb6d8a9a80c1 /modules/blogapi
parent4e350604519868988a4e635df2ff93643f8c51da (diff)
downloadbrdo-16051d46a94f360db508fc1fce436fa718f70e20.tar.gz
brdo-16051d46a94f360db508fc1fce436fa718f70e20.tar.bz2
- Patch 42210 by Neil: Save whole node instead of saving taxonomy.
Diffstat (limited to 'modules/blogapi')
-rw-r--r--modules/blogapi/blogapi.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 2e5fef9bc..8fa29326e 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -445,13 +445,13 @@ function blogapi_mt_set_post_categories($postid, $username, $password, $categori
return blogapi_error($user);
}
- $nid = $postid;
- $terms = array();
+ $node = node_load($postid);
+ $node->taxonomy = array();
foreach ($categories as $category) {
- $terms[] = $category['categoryId'];
+ $node->taxonomy[] = $category['categoryId'];
}
- module_invoke('taxonomy', 'node_save', $nid, $terms);
- return true;
+ node_save($node);
+ return TRUE;
}
/**