Skip to content
Snippets Groups Projects
Commit c54a0f57 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 21a3c243
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) { ...@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) {
else { else {
if ($node->comment == COMMENT_NODE_READ_WRITE) { if ($node->comment == COMMENT_NODE_READ_WRITE) {
if (user_access('post comments')) { 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 { else {
$links[] = theme('comment_post_forbidden', $node->nid); $links[] = theme('comment_post_forbidden', $node->nid);
......
...@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) { ...@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) {
else { else {
if ($node->comment == COMMENT_NODE_READ_WRITE) { if ($node->comment == COMMENT_NODE_READ_WRITE) {
if (user_access('post comments')) { 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 { else {
$links[] = theme('comment_post_forbidden', $node->nid); $links[] = theme('comment_post_forbidden', $node->nid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment