- Fixed problem with node_load() in blogapi. Reported by nysus.

4.7.x
Dries Buytaert 2005-07-19 16:32:05 +00:00
parent 20d9cae641
commit 4da128a416
2 changed files with 4 additions and 4 deletions

View File

@ -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.'));
}

View File

@ -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.'));
}