From 124694ee4dbcc1df5dfc2d419ed2393619883071 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 27 Jun 2001 18:06:36 +0000 Subject: - Fixed bug node.module bug: + the node scheduler did not un-schedule a node! - Fixed comment bugs (as a result of the formification): + no signatures where being attached to the comments. + check_input was used where is should have been check_output, with broken filters as the immediate result. --- modules/calendar.module | 8 ++++---- modules/node.module | 4 ++-- modules/node/node.module | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/calendar.module b/modules/calendar.module index e60e47dc2..93c6c0ae9 100644 --- a/modules/calendar.module +++ b/modules/calendar.module @@ -17,7 +17,7 @@ class Calendar { // Extract today's date: $today = mktime(23, 59, 59, date("n", time()), date("d", time()), date("Y", time())); - + // Extract the timestamp of the last day of today's month: $thislast = mktime(23, 59, 59, date("n", time()), date("t", time()), date("Y", time())); @@ -32,12 +32,12 @@ class Calendar { $prev = mktime(23, 59, 59, $month - 1, min(date("t", $prevmonth), $day), $year); $nextmonth = mktime(23, 59, 59, $month + 1, 1, $year); $next = mktime(23, 59, 59, $month + 1, min(date("t", $nextmonth), $day), $year); - - // Generate calendar header: + + // Generate calendar header: $output .= "\n\n"; $output .= "\n"; $output .= " \n"; - + // Generate the days of the week: $output .= " "; $somesunday = mktime(0, 0, 0, 3, 20, 1994); diff --git a/modules/node.module b/modules/node.module index 92bf70690..7bc148177 100644 --- a/modules/node.module +++ b/modules/node.module @@ -65,8 +65,8 @@ function node_filter($text) { function node_cron() { db_query("UPDATE node SET status = '". node_status("posted") ."', timestamp_posted = '' WHERE timestamp_posted > 0 AND timestamp_posted < ". time()); - db_query("UPDATE node SET status = '". node_status("queued") ."', timestamp_posted = '' WHERE timestamp_queued > 0 AND timestamp_queued < ". time()); - db_query("UPDATE node SET status = '". node_status("dumped") ."', timestamp_posted = '' WHERE timestamp_hidden > 0 AND timestamp_hidden < ". time()); + db_query("UPDATE node SET status = '". node_status("queued") ."', timestamp_queued = '' WHERE timestamp_queued > 0 AND timestamp_queued < ". time()); + db_query("UPDATE node SET status = '". node_status("dumped") ."', timestamp_hidden = '' WHERE timestamp_hidden > 0 AND timestamp_hidden < ". time()); } function node_link($nid, $type) { diff --git a/modules/node/node.module b/modules/node/node.module index 92bf70690..7bc148177 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -65,8 +65,8 @@ function node_filter($text) { function node_cron() { db_query("UPDATE node SET status = '". node_status("posted") ."', timestamp_posted = '' WHERE timestamp_posted > 0 AND timestamp_posted < ". time()); - db_query("UPDATE node SET status = '". node_status("queued") ."', timestamp_posted = '' WHERE timestamp_queued > 0 AND timestamp_queued < ". time()); - db_query("UPDATE node SET status = '". node_status("dumped") ."', timestamp_posted = '' WHERE timestamp_hidden > 0 AND timestamp_hidden < ". time()); + db_query("UPDATE node SET status = '". node_status("queued") ."', timestamp_queued = '' WHERE timestamp_queued > 0 AND timestamp_queued < ". time()); + db_query("UPDATE node SET status = '". node_status("dumped") ."', timestamp_hidden = '' WHERE timestamp_hidden > 0 AND timestamp_hidden < ". time()); } function node_link($nid, $type) { -- cgit v1.2.3
<   ". date("F Y", $this->date) ."   " . ($next <= $thislast ? ">" : ">") . "