From 7ebd772f417fe7bd6324fdd12707c1b9c89ce324 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 16 Oct 2004 07:22:26 +0000 Subject: - Patch #10664 by TDobes: fixed collapsed comments + updated the code comments. --- modules/comment.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index e2938f22d..f8b08f27f 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -136,6 +136,11 @@ function comment_menu($may_cache) { $items[] = array('path' => 'comment', 'title' => t('reply to comment'), 'callback' => 'comment_save_settings', 'access' => 1, 'type' => MENU_CALLBACK); } + else if ((arg(0) == 'node') && is_numeric(arg(1)) && is_numeric(arg(2))) { + $items[] = array('path' => ('node/'. arg(1) .'/'. arg(2)), 'title' => t('view'), + 'callback' => 'node_page', + 'type' => MENU_CALLBACK); + } return $items; } @@ -1577,7 +1582,7 @@ function theme_comment($comment, $links = 0) { function theme_comment_folded($comment) { $output = "
\n"; - $output .= ' '. l($comment->subject, comment_node_url() .'/view/'. $comment->cid, NULL, NULL, "comment-$comment->cid") . ($comment->new ? ' '. theme('mark') : '') .' '; + $output .= ' '. l($comment->subject, comment_node_url() .'/'. $comment->cid, NULL, NULL, "comment-$comment->cid") . ($comment->new ? ' '. theme('mark') : '') .' '; $output .= ''. t('by') .' '. format_name($comment) ."\n"; $output .= "
\n"; return $output; -- cgit v1.2.3