summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-12 20:31:48 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-12 20:31:48 +0000
commit706a2e199af488d2090233f59024cda1412ec13c (patch)
tree5415104b524c3f48ffb98cb16b9628ab6d8afe3e
parent8c0d452d372373934463ef58fa2b8dc867b82421 (diff)
downloadbrdo-706a2e199af488d2090233f59024cda1412ec13c.tar.gz
brdo-706a2e199af488d2090233f59024cda1412ec13c.tar.bz2
- using format_name instead of some local hack.
-rw-r--r--modules/tracker.module4
-rw-r--r--modules/tracker/tracker.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/tracker.module b/modules/tracker.module
index 2b3b1ecbd..6355b8eea 100644
--- a/modules/tracker.module
+++ b/modules/tracker.module
@@ -16,7 +16,7 @@ function tracker_link($type) {
}
function tracker_comments($id = 0) {
- $period = time() - 259200; // all comments of the past 3 days
+ $period = time() - 259200 *20; // all comments of the past 3 days
if ($id) {
$sresult = db_query("SELECT n.nid, n.title, COUNT(n.nid) AS comments, MAX(c.timestamp) AS last_comment FROM comments c LEFT JOIN node n ON c.nid = n.nid WHERE c.timestamp > $period AND c.uid = '%s' GROUP BY n.nid, n.title DESC ORDER BY last_comment DESC LIMIT 10", $id);
@@ -37,7 +37,7 @@ function tracker_comments($id = 0) {
$output .= "<ul>";
while ($comment = db_fetch_object($cresult)) {
- $output .= " <li>". l(check_output($comment->subject), array("id" => $node->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid) ." by ". lm(check_output($comment->name), array("mod" => "user", "op" => "view", "id" => $comment->uid)) ." (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? "<span style=\"color: red;\">*</span>" : "") ."</li>\n";
+ $output .= " <li>". l(check_output($comment->subject), array("id" => $node->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid) ." by ". format_name($comment->name) ." (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? "<span style=\"color: red;\">*</span>" : "") ."</li>\n";
}
$output .= " </ul>\n";
}
diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module
index 2b3b1ecbd..6355b8eea 100644
--- a/modules/tracker/tracker.module
+++ b/modules/tracker/tracker.module
@@ -16,7 +16,7 @@ function tracker_link($type) {
}
function tracker_comments($id = 0) {
- $period = time() - 259200; // all comments of the past 3 days
+ $period = time() - 259200 *20; // all comments of the past 3 days
if ($id) {
$sresult = db_query("SELECT n.nid, n.title, COUNT(n.nid) AS comments, MAX(c.timestamp) AS last_comment FROM comments c LEFT JOIN node n ON c.nid = n.nid WHERE c.timestamp > $period AND c.uid = '%s' GROUP BY n.nid, n.title DESC ORDER BY last_comment DESC LIMIT 10", $id);
@@ -37,7 +37,7 @@ function tracker_comments($id = 0) {
$output .= "<ul>";
while ($comment = db_fetch_object($cresult)) {
- $output .= " <li>". l(check_output($comment->subject), array("id" => $node->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid) ." by ". lm(check_output($comment->name), array("mod" => "user", "op" => "view", "id" => $comment->uid)) ." (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? "<span style=\"color: red;\">*</span>" : "") ."</li>\n";
+ $output .= " <li>". l(check_output($comment->subject), array("id" => $node->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid) ." by ". format_name($comment->name) ." (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? "<span style=\"color: red;\">*</span>" : "") ."</li>\n";
}
$output .= " </ul>\n";
}