summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-10-16 07:22:26 +0000
committerDries Buytaert <dries@buytaert.net>2004-10-16 07:22:26 +0000
commit7ebd772f417fe7bd6324fdd12707c1b9c89ce324 (patch)
tree362127a7a84ed8c7c029579f760e11d1e0de3e34 /modules/comment.module
parentba2761929c4200c28ff658ecdb83158f1a9deb36 (diff)
downloadbrdo-7ebd772f417fe7bd6324fdd12707c1b9c89ce324.tar.gz
brdo-7ebd772f417fe7bd6324fdd12707c1b9c89ce324.tar.bz2
- Patch #10664 by TDobes: fixed collapsed comments + updated the code comments.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module7
1 files changed, 6 insertions, 1 deletions
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 = "<div class=\"comment-folded\">\n";
- $output .= ' <span class="subject">'. l($comment->subject, comment_node_url() .'/view/'. $comment->cid, NULL, NULL, "comment-$comment->cid") . ($comment->new ? ' '. theme('mark') : '') .'</span> ';
+ $output .= ' <span class="subject">'. l($comment->subject, comment_node_url() .'/'. $comment->cid, NULL, NULL, "comment-$comment->cid") . ($comment->new ? ' '. theme('mark') : '') .'</span> ';
$output .= '<span class="credit">'. t('by') .' '. format_name($comment) ."</span>\n";
$output .= "</div>\n";
return $output;