summaryrefslogtreecommitdiff
path: root/modules/blogapi
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-07-19 16:32:05 +0000
committerDries Buytaert <dries@buytaert.net>2005-07-19 16:32:05 +0000
commit4da128a4163cfb3f040b33f2e73a2cff29c8e247 (patch)
treea26e59b601abebf56d27a67c816c9241ef25c4f0 /modules/blogapi
parent20d9cae6418de079c3a7ed269193c564b8f499da (diff)
downloadbrdo-4da128a4163cfb3f040b33f2e73a2cff29c8e247.tar.gz
brdo-4da128a4163cfb3f040b33f2e73a2cff29c8e247.tar.bz2
- Fixed problem with node_load() in blogapi. Reported by nysus.
Diffstat (limited to 'modules/blogapi')
-rw-r--r--modules/blogapi/blogapi.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index e8a2009cb..1f5eabef3 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -330,7 +330,7 @@ function blogapi_metaweblog_get_post($postid, $username, $password) {
return blogapi_error($user);
}
- $node = node_load('nid' => $postid);
+ $node = node_load($postid);
return _blogapi_get_post($node, true);
}
@@ -469,7 +469,7 @@ function blogap_mti_publish_post($postid, $username, $password) {
if (!$user->uid) {
return blogapi_error($user);
}
- $node = node_load('nid' => $postid);
+ $node = node_load($postid);
if (!$node) {
return blogapi_error(t('Invalid post.'));
}