diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-01 05:00:24 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-01 05:00:24 +0000 |
commit | 96f297021cce5e69e16606233a9175987517feda (patch) | |
tree | d4581768e1ac80ee9d74569534b56672eaf254de /modules/comment/comment.module | |
parent | 938af5fc078d15e97e7aafa68cafa90273e28cdf (diff) | |
download | brdo-96f297021cce5e69e16606233a9175987517feda.tar.gz brdo-96f297021cce5e69e16606233a9175987517feda.tar.bz2 |
#506650 by catch: Remove unnecessary comment_node_url().
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 28815fafe..7b6180f20 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -860,16 +860,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. * * @param $comment @@ -1011,11 +1001,11 @@ function comment_links($comment, $return = 1) { global $user; $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) { $links['comment_parent'] = array( 'title' => t('parent'), - 'href' => comment_node_url(), + 'href' => 'comment/' . $comment->cid, 'fragment' => "comment-$comment->cid" ); } |