From 1e4308a939723529b665ac7e0e0356950a0507f7 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Tue, 2 Apr 2002 09:45:57 +0000 Subject: - made the user information block into two different blocks. One for login and one for user information. - added link to help in book module (post-patch, see below). - applied various patches: Patch by Greg Tyrelle - tracker module now shows usernames next to comments. Patch by Moshe Weitzman - book module has a more complete help. - added administrative link to export book to html - fixed non book nodes not showing up in trees. Patch by moshe weitzman - links can be defined in the configuration file. --- modules/tracker/tracker.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/tracker/tracker.module') diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index 5f2a9fcc6..49fceb724 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -34,12 +34,12 @@ function tracker_comments($id = 0) { $cresult = db_query("SELECT * FROM comments WHERE timestamp > $period AND uid = '". check_input($id) ."' AND nid = '$node->nid' ORDER BY cid DESC"); } else { - $cresult = db_query("SELECT * FROM comments WHERE timestamp > $period AND nid = '$node->nid' ORDER BY cid DESC"); + $cresult = db_query("SELECT c.*, u.name FROM comments c LEFT JOIN users u ON c.uid = u.uid WHERE c.timestamp > $period AND c.nid = '$node->nid' ORDER BY c.cid DESC"); } $output .= "\n"; } -- cgit v1.2.3