summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/blog.module2
-rw-r--r--modules/blog/blog.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog.module b/modules/blog.module
index 8fa127498..e7b5c6514 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -202,7 +202,7 @@ function blog_save($edit) {
if ($user->id && (user_access("administer blogs") || user_access("post blogs"))) {
if (!$edit["nid"]) {
- node_save($edit, array(author => $user->id, body, status => variable_get("blog_status", $status[posted]), timestamp => time(), title, type => "blog"));
+ node_save($edit, array(attributes => node_attributes_save("blog", $edit), author => $user->id, body, comment => variable_get("blog_comment", 0), moderate => variable_get("blog_moderate", ""), promote => variable_get("blog_promote", 0), score => 0, status => variable_get("blog_status", $status[queued]), timestamp => time(), title, type => "blog", votes => 0));
}
else {
node_save($edit, array(title, body, type => "blog"));
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 8fa127498..e7b5c6514 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -202,7 +202,7 @@ function blog_save($edit) {
if ($user->id && (user_access("administer blogs") || user_access("post blogs"))) {
if (!$edit["nid"]) {
- node_save($edit, array(author => $user->id, body, status => variable_get("blog_status", $status[posted]), timestamp => time(), title, type => "blog"));
+ node_save($edit, array(attributes => node_attributes_save("blog", $edit), author => $user->id, body, comment => variable_get("blog_comment", 0), moderate => variable_get("blog_moderate", ""), promote => variable_get("blog_promote", 0), score => 0, status => variable_get("blog_status", $status[queued]), timestamp => time(), title, type => "blog", votes => 0));
}
else {
node_save($edit, array(title, body, type => "blog"));