From eb7c5f60b965bb1385a4b209041ae99181fae3f5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 24 Nov 2001 15:10:36 +0000 Subject: - Bugfix: when updating a book page, the name of the author did not change. - Bugfix: the "Edit comments" part of the node administration pages did not display the correct comments. - Bugfix: somethimes, update in a book page would mess up the book. - Improvement: when "node administrators" update a book page through the "update this book page"-link (like regular users do), their update will be subject to moderation. - Improvement: made some intermediate changes to the filter mechanism. Needs more work. --- modules/node/node.module | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 6b0dd88fe..b0e587a8b 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -150,7 +150,7 @@ function node_link($type, $node = 0, $main = 0) { if (module_invoke($node->type, "access", "update", $node)) { $links[] = "nid\">". t("edit") .""; } - + if (user_access("administer nodes")) { $links[] = "nid\">". t("administer") .""; } @@ -232,7 +232,7 @@ function node_admin_edit($node) { $output .= "

". t("Edit comments") ."

"; - $result = db_query("SELECT c.cid, c.subject, u.uid, u.name FROM comments c LEFT JOIN users u ON u.uid = c.uid WHERE lid = '". $node["nid"] ."' ORDER BY c.timestamp"); + $result = db_query("SELECT c.cid, c.subject, u.uid, u.name FROM comments c LEFT JOIN users u ON u.uid = c.uid WHERE lid = '$node->nid' ORDER BY c.timestamp"); $output .= ""; $output .= " "; @@ -474,6 +474,7 @@ function node_validate($node, $error = array()) { $node = node_object($node); + /* ** Validate the title field: */ @@ -755,6 +756,14 @@ function node_submit($node) { $node = node_validate($node); + /* + ** Apply the filters: + */ + + $node->teaser = filter($node->teaser); + $node->title = filter($node->title); + $node->body = filter($node->body); + /* ** Create a new revision when required: */ -- cgit v1.2.3
titleauthoroperations