From 8213f5b2627a6b63db9f84b572918bd7e3254dff Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 6 Apr 2001 14:14:16 +0000 Subject: A lot of small changes (search-n-replace) make a big commit: - fixed update bug in book.module - provide a log message when both adding and updating book pages - all configurable variables are now accessed through "variable_get()": - rewrote watchdog and submission throttle and removed watchdog.inc - improved robustness of sections.inc - imporved story.module - updated ./database/database.sql --- modules/moderation.module | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/moderation.module') diff --git a/modules/moderation.module b/modules/moderation.module index 9f7a7049f..ac193c166 100644 --- a/modules/moderation.module +++ b/modules/moderation.module @@ -82,9 +82,12 @@ function moderation_node($id) { header("Location: node.php?id=$node->nid"); } else { - if ($node->pid && $n = node_get_object("nid", $node->pid)) { - if ($node->pid) $output .= " ". t("The above node is a suggested update for an existing node:") ." \"nid\">". check_output($n->title) ."\"."; - if ($node->log) $output .= " ". t("The log message to accompany this update is given below:") ."

". check_output($node->log, 1) ."

"; + if ($n = node_get_object("nid", $node->pid)) { + $output .= " ". t("The above node is a proposed update of an existing node:") ." \"nid\">". check_output($n->title) ."\"."; + } + + if ($node->log) { + $output .= " ". t("The log message to accompany this submission is given below:") ."

". check_output($node->log, 1) ."

"; } // moderation form: -- cgit v1.2.3