Commit c54a0f57 authored by Dries's avatar Dries

- Patch #51543 by wtanaka: clicking on 'add new comment' takes you to the wrong place.

parent 21a3c243
......@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) {
else {
if ($node->comment == COMMENT_NODE_READ_WRITE) {
if (user_access('post comments')) {
$links[] = l(t('add new comment'), "comment/reply/$node->nid", array('title' => t('Add a new comment to this page.')));
$links[] = l(t('add new comment'), "comment/reply/$node->nid", array('title' => t('Add a new comment to this page.')), NULL, 'comment-form');
}
else {
$links[] = theme('comment_post_forbidden', $node->nid);
......
......@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) {
else {
if ($node->comment == COMMENT_NODE_READ_WRITE) {
if (user_access('post comments')) {
$links[] = l(t('add new comment'), "comment/reply/$node->nid", array('title' => t('Add a new comment to this page.')));
$links[] = l(t('add new comment'), "comment/reply/$node->nid", array('title' => t('Add a new comment to this page.')), NULL, 'comment-form');
}
else {
$links[] = theme('comment_post_forbidden', $node->nid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment