summaryrefslogtreecommitdiff
path: root/modules/forum.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-02 22:12:35 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-02 22:12:35 +0000
commitb0c349e247b823e74d8c611cdc5d0931317e7757 (patch)
tree1eea57def39cd30e6c65051bdd349224ed3e929d /modules/forum.module
parent993f4d2eadcd29221bc8e81f3013b92a6e921bdd (diff)
downloadbrdo-b0c349e247b823e74d8c611cdc5d0931317e7757.tar.gz
brdo-b0c349e247b823e74d8c611cdc5d0931317e7757.tar.bz2
- Moved most of the options in structure.module to node.module. The
structure.module either needs work, or replacement by index.module: see "admin > node > node settings". It will do for now and it can always made better when we can think of a better solution; it is the best I could think of. Now what? index.module or structure.module? I'm currently pro index.module. - Drastically simplified "variable.inc". - Removed most dependecies on structure.module from all content related modules. Thus making our modules more modular. ;) - Fixed calculation glitch in queue.module. - Fixed potential function name clash/conflict in rating.module, and simplified some code on my way. - Started removing all global variables $status and $rstatus. Global variables are "yucky" so in near future, we will replace all global $status variables by a call to node_status(). Originally, $status was only introduced as a temporary hack and nothing is as permanent as a temporary hack so I took it out when still possible. - Changed the watchdog messages a bit.
Diffstat (limited to 'modules/forum.module')
-rw-r--r--modules/forum.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/forum.module b/modules/forum.module
index 7556d4315..cf307f441 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -26,7 +26,7 @@ function forum_save($edit) {
global $user, $status;
if (user_access($user)) {
- node_save($edit, array(author => $user->id, body, cid, comment => category_comment($edit[cid]), moderate => topic_moderate($edit[tid]), promote => category_promote($edit[cid]), score => 0, status => $status[posted], tid, timestamp => time(), title, type => "forum", votes => 0));
+ node_save($edit, array(author => $user->id, body, cid, comment => variable_get("forum_comment", 0), moderate => variable_get("forum_moderate", ""), promote => variable_get("forum_promote", 0), score => 0, status => $status[posted], tid, timestamp => time(), title, type => "forum", votes => 0));
}
}