summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-02 14:42:45 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-02 14:42:45 +0000
commitbd22265b458032ad71f22bb471ed69995874d37c (patch)
tree84845e787d71ff61476169af0aae228e1ebafc46 /modules/forum/forum.module
parentaeaeb17c73c2f29b87b5d4504834d2e158d00883 (diff)
downloadbrdo-bd22265b458032ad71f22bb471ed69995874d37c.tar.gz
brdo-bd22265b458032ad71f22bb471ed69995874d37c.tar.bz2
- Patch #306224 by catch et al: improving the taxonomy hook system.
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 822f06004..b73d42631 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -632,8 +632,6 @@ function forum_get_topics($tid, $sortby, $forum_per_page) {
}
}
- $term = taxonomy_term_load($tid);
-
$sql = db_rewrite_sql("SELECT n.nid, r.tid, n.title, n.type, n.sticky, u.name, u.uid, n.created AS timestamp, n.comment AS comment_mode, l.last_comment_timestamp, IF(l.last_comment_uid != 0, cu.name, l.last_comment_name) AS last_comment_name, l.last_comment_uid, l.comment_count AS num_comments, f.tid AS forum_tid FROM {node_comment_statistics} l INNER JOIN {node} n ON n.nid = l.nid INNER JOIN {users} cu ON l.last_comment_uid = cu.uid INNER JOIN {term_node} r ON n.vid = r.vid INNER JOIN {users} u ON n.uid = u.uid INNER JOIN {forum} f ON n.vid = f.vid WHERE n.status = 1 AND r.tid = %d");
$sql .= tablesort_sql($forum_topic_list_header, 'n.sticky DESC,');
$sql .= ', n.created DESC'; // Always add a secondary sort order so that the news forum topics are on top.