Skip to content
Snippets Groups Projects
Commit 96f29702 authored by Angie Byron's avatar Angie Byron
Browse files

#506650 by catch: Remove unnecessary comment_node_url().

parent 938af5fc
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
...@@ -859,16 +859,6 @@ function comment_access($op, $comment) { ...@@ -859,16 +859,6 @@ function comment_access($op, $comment) {
} }
} }
/**
* A simple helper function.
*
* @return
* The 0th and the 1st path components joined by a slash.
*/
function comment_node_url() {
return arg(0) . '/' . arg(1);
}
/** /**
* Accepts a submission of new or changed comment content. * Accepts a submission of new or changed comment content.
* *
...@@ -1011,11 +1001,11 @@ function comment_links($comment, $return = 1) { ...@@ -1011,11 +1001,11 @@ function comment_links($comment, $return = 1) {
global $user; global $user;
$links = array(); $links = array();
// If viewing just this comment, link back to the node. // If viewing just this comment, link back to the in-context view.
if ($return) { if ($return) {
$links['comment_parent'] = array( $links['comment_parent'] = array(
'title' => t('parent'), 'title' => t('parent'),
'href' => comment_node_url(), 'href' => 'comment/' . $comment->cid,
'fragment' => "comment-$comment->cid" 'fragment' => "comment-$comment->cid"
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment