diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-05-05 22:22:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-05-05 22:22:46 +0000 |
commit | 2debcfb1efd074f310a64afa7e145d84031ed7f2 (patch) | |
tree | c0e3c19d72371e6236d26e80c49347b23d10e5f5 /modules/forum | |
parent | 381853c6b9fc493a32645eb83f21993d5cf4796b (diff) | |
download | brdo-2debcfb1efd074f310a64afa7e145d84031ed7f2.tar.gz brdo-2debcfb1efd074f310a64afa7e145d84031ed7f2.tar.bz2 |
- 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()! .
Diffstat (limited to 'modules/forum')
-rw-r--r-- | modules/forum/forum.module | 2 |
1 files changed, 1 insertions, 1 deletions
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; |