From 56b35360eda1b2777da112c14ea2cc1efa0c1448 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 25 Jun 2001 20:06:06 +0000 Subject: - Fixed problem with book.module (reported by Jared). - Fixed problem with forum.module (reported by Jared). --- modules/book.module | 4 ++-- modules/book/book.module | 4 ++-- modules/forum.module | 2 +- modules/forum/forum.module | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/book.module b/modules/book.module index c8c8ad85a..0365e9833 100644 --- a/modules/book.module +++ b/modules/book.module @@ -168,13 +168,13 @@ function book_delete($node) { function book_insert($node) { if ($node->pid && $node->status == node_status("posted")) { - db_query("UPDATE node SET status = '". node_status("expired") ."' WHERE nid = '$node->pid'", 1); + db_query("UPDATE node SET status = '". node_status("expired") ."' WHERE nid = '$node->pid'"); } } function book_update($node) { if ($node->pid && $node->status == node_status("posted")) { - db_query("UPDATE node SET status = '". node_status("expired") ."' WHERE nid = '$node->pid'", 1); + db_query("UPDATE node SET status = '". node_status("expired") ."' WHERE nid = '$node->pid'"); } } diff --git a/modules/book/book.module b/modules/book/book.module index c8c8ad85a..0365e9833 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -168,13 +168,13 @@ function book_delete($node) { function book_insert($node) { if ($node->pid && $node->status == node_status("posted")) { - db_query("UPDATE node SET status = '". node_status("expired") ."' WHERE nid = '$node->pid'", 1); + db_query("UPDATE node SET status = '". node_status("expired") ."' WHERE nid = '$node->pid'"); } } function book_update($node) { if ($node->pid && $node->status == node_status("posted")) { - db_query("UPDATE node SET status = '". node_status("expired") ."' WHERE nid = '$node->pid'", 1); + db_query("UPDATE node SET status = '". node_status("expired") ."' WHERE nid = '$node->pid'"); } } diff --git a/modules/forum.module b/modules/forum.module index a9029f53d..cdbe9ce4f 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -24,7 +24,7 @@ function forum_form($edit = array()) { function forum_save($edit) { global $user, $status; - node_save($edit, array(author => $user->id, body, comment => 1, moderate => variable_get("forum_moderate", ""), promote => variable_get("forum_promote", 0), score => 0, status => $status[posted], timestamp => time(), title, type => "forum", votes => 0)); + node_save($edit, array(author => $user->id, body, comment => 1, moderate => 0, promote => 0, score => 0, status => $status[posted], timestamp => time(), title, type => "forum", votes => 0)); } function forum_num_comments($nid) { diff --git a/modules/forum/forum.module b/modules/forum/forum.module index a9029f53d..cdbe9ce4f 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -24,7 +24,7 @@ function forum_form($edit = array()) { function forum_save($edit) { global $user, $status; - node_save($edit, array(author => $user->id, body, comment => 1, moderate => variable_get("forum_moderate", ""), promote => variable_get("forum_promote", 0), score => 0, status => $status[posted], timestamp => time(), title, type => "forum", votes => 0)); + node_save($edit, array(author => $user->id, body, comment => 1, moderate => 0, promote => 0, score => 0, status => $status[posted], timestamp => time(), title, type => "forum", votes => 0)); } function forum_num_comments($nid) { -- cgit v1.2.3