summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-27 20:51:26 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-27 20:51:26 +0000
commit4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68 (patch)
treec3611570a31af3bce1042d62affa6a38c8678292 /modules/comment.module
parent6cde632962a461d2dc2acef0917b592823e123f8 (diff)
downloadbrdo-4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68.tar.gz
brdo-4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68.tar.bz2
- a batch of updates, including some experimental changes to the moderation
of comments and nodes.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 448f1ff32..d420e5b69 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -4,7 +4,7 @@ function comment_search($keys) {
global $PHP_SELF;
$result = db_query("SELECT c.*, u.name FROM comments c LEFT JOIN user u ON c.author = u.uid WHERE c.subject LIKE '%$keys%' OR c.comment LIKE '%$keys%' ORDER BY c.timestamp DESC LIMIT 20");
while ($comment = db_fetch_object($result)) {
- $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);
+ $find[$i++] = array("title" => check_output($comment->subject), "link" => (strstr($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;
}