From e2f249878eddb4d91e3bffa80ba5452691b5e43b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 16 Sep 2001 14:05:10 +0000 Subject: - improved the search system by making it context sensitive --- modules/comment.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 02bd25f43..448f1ff32 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1,9 +1,10 @@ check_output($comment->subject), "link" => (user_access("administer comments") ? "admin.php?mod=comment&op=edit&id=$comment->cid" : "node.php?id=$comment->lid&cid=$comment->cid"), "user" => $comment->name, "date" => $comment->timestamp); + $find[$i++] = array("title" => check_output($comment->subject), "link" => ($PHP_SELF == "/admin.php" ? "admin.php?mod=comment&op=edit&id=$comment->cid" : "node.php?id=$comment->lid&cid=$comment->cid"), "user" => $comment->name, "date" => $comment->timestamp); } return $find; } -- cgit v1.2.3