From 2debcfb1efd074f310a64afa7e145d84031ed7f2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 5 May 2005 22:22:46 +0000 Subject: - Patch #15595 by Stefan and Djun: improved status messages. TODO: we should write down a couple guidelines for these document them in the PHPDoc code of drupal_set_message()! . --- modules/forum/forum.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/forum/forum.module') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index dfbcb0ff1..c1aa6c33f 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -337,7 +337,7 @@ function forum_block($op = 'list', $delta = 0, $edit = array()) { switch ($delta) { case 0: $title = t('Active forum topics'); - $sql = db_rewrite_sql("SELECT n.nid, n.title, l.last_comment_timestamp, l.comment_count FROM {node} n INNER JOIN {node_comment_statistics} l ON n.nid = l.nid WHERE n.status = 1 AND n.type='forum' ORDER BY l.last_comment_timestamp DESC"); + $sql = db_rewrite_sql("SELECT n.nid, n.title, l.last_comment_timestamp, l.comment_count FROM {node} n INNER JOIN {node_comment_statistics} l ON n.nid = l.nid WHERE n.status = 1 AND n.type = 'forum' ORDER BY l.last_comment_timestamp DESC"); $content = node_title_list(db_query_range($sql, 0, variable_get('forum_block_num_0', '5'))); break; -- cgit v1.2.3