--- comment.module?rev=1.342 2005-03-20 02:19:55.000000000 +0100 +++ comment.module 2005-03-20 02:23:07.000000000 +0100 @@ -122,19 +122,23 @@ function comment_menu($may_cache) { 'callback' => 'comment_vote_settings', 'access' => $access,'type' => MENU_LOCAL_TASK); $access = user_access('post comments'); - $items[] = array('path' => 'comment/reply', 'title' => t('reply to comment'), - 'callback' => 'comment_reply', 'access' => $access, 'type' => MENU_CALLBACK); $items[] = array('path' => 'comment/edit', 'title' => t('edit comment'), 'callback' => 'comment_edit', 'access' => $access, 'type' => MENU_CALLBACK); $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))) { + else { + if (is_numeric(arg(2))) { + $items[] = array('path' => 'comment/reply', 'title' => t('reply to comment'), + 'callback' => 'comment_reply', 'access' => node_access(arg(2)), 'type' => MENU_CALLBACK); + } + 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; }