Skip to content
Snippets Groups Projects
Commit beb844e3 authored by Elin Yordanov's avatar Elin Yordanov Committed by Andrii Podanenko
Browse files

Issue #2612528 by Елин Й.: "Quick reply" link doesn't work if the comment form...

Issue #2612528 by Елин Й.: "Quick reply" link doesn't work if the comment form gets an id like "comment-form--2"
parent 018eaf2e
Branches
Tags 7.x-2.7-rc0
No related merge requests found
......@@ -858,7 +858,6 @@ function advanced_forum_get_reply_link($node) {
$reply_link = array();
$comment_setting = $node->comment;
$fragment = $node->content['comments']['comment_form']['#id'];
if ($comment_setting == COMMENT_NODE_OPEN) {
......@@ -881,6 +880,8 @@ function advanced_forum_get_reply_link($node) {
}
if ($allowed) {
$fragment = $node->content['comments']['comment_form']['#id'];
if (variable_get('comment_form_location_' . $node->type, COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
// Reply form is on separate page. Grab the href from the node links
// so it's automatically corrected for Node Comments if needed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment