summaryrefslogtreecommitdiff
path: root/modules/blogapi.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-09-02 02:11:41 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-09-02 02:11:41 +0000
commit69247d7aad8052482d3feac7041ccca702226b03 (patch)
tree680fd99df1f0810d8bb7442563081c0c3fc54ddd /modules/blogapi.module
parent436cd01b5f51d54e980503e993e950ddba7eca55 (diff)
downloadbrdo-69247d7aad8052482d3feac7041ccca702226b03.tar.gz
brdo-69247d7aad8052482d3feac7041ccca702226b03.tar.bz2
- #30128: Call by reference left-overs
Diffstat (limited to 'modules/blogapi.module')
-rw-r--r--modules/blogapi.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blogapi.module b/modules/blogapi.module
index 3160539db..81844de87 100644
--- a/modules/blogapi.module
+++ b/modules/blogapi.module
@@ -218,10 +218,10 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
return blogapi_error(t('You do not have permission to create the type of post you wanted to create.'));
}
- node_save(&$node);
+ node_save($node);
if ($node->nid) {
watchdog('content', t('%type: added %title using blog API.', array('%type' => '<em>'. t($node->type) .'</em>', '%title' => theme('placeholder', $node->title))), WATCHDOG_NOTICE, l(t('view'), "node/$node->nid"));
- return $nid;
+ return $node->nid;
}
return blogapi_error(t('Error storing post.'));
@@ -276,7 +276,7 @@ function blogapi_blogger_edit_post($appkey, $postid, $username, $password, $cont
foreach ($terms as $term) {
$node->taxonomy[] = $term->tid;
}
- node_save(&$node);
+ node_save($node);
if ($node->nid) {
watchdog('content', t('%type: updated %title using blog API.', array('%type' => '<em>'. t($node->type) .'</em>', '%title' => theme('placeholder', $node->title))), WATCHDOG_NOTICE, l(t('view'), "node/$node->nid"));
return true;