From b0c349e247b823e74d8c611cdc5d0931317e7757 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 2 Jun 2001 22:12:35 +0000 Subject: - 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. --- modules/page/page.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/page/page.module') diff --git a/modules/page/page.module b/modules/page/page.module index 91ef7b8fc..9af1b2c9c 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -40,7 +40,7 @@ function page_save($edit) { global $status, $user; if (user_access($user)) { - node_save($edit, array(author => $user->id, body, cid, comment => category_comment($edit[cid]), format, moderate => topic_moderate($edit[tid]), promote => category_promote($edit[cid]), score => 0, status => $status[posted], tid, timestamp => time(), title, type => "page", votes => 0)); + node_save($edit, array(author => $user->id, body, cid, comment => variable_get("page_comment", 0), format, moderate => variable_get("page_moderate", ""), promote => variable_get("page_promote", 0), score => 0, status => $status[posted], tid, timestamp => time(), title, type => "page", votes => 0)); } } -- cgit v1.2.3