? nodecomment-fix-l.patch
Index: node-comment.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodecomment/node-comment.tpl.php,v
retrieving revision 1.1
diff -u -p -r1.1 node-comment.tpl.php
--- node-comment.tpl.php	10 Jan 2007 21:43:42 -0000	1.1
+++ node-comment.tpl.php	14 Feb 2009 07:05:16 -0000
@@ -11,7 +11,7 @@
 
 <?php print $picture ?>
 
-  <div class="subject"><?php print l($node->title, $_GET['q'], NULL, NULL, "comment-$node->nid") . ' ' . theme('mark', $node->new); ?></div>
+  <div class="subject"><?php print l($node->title, $_GET['q'], array('fragment' => 'comment-'. $node->nid)) . ' ' . theme('mark', $node->new); ?></div>
 
   <?php if ($submitted): ?>
     <span class="submitted"><?php print t('!date — !username', array('!username' => theme('username', $node), '!date' => format_date($node->created))); ?></span>
@@ -32,4 +32,4 @@
       <div class="links clear-block"><?php print $links; ?></div>
     <?php endif; ?>
   </div>
-</div>
\ No newline at end of file
+</div>
Index: nodecomment.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodecomment/nodecomment.module,v
retrieving revision 1.3.2.15.2.6
diff -u -p -r1.3.2.15.2.6 nodecomment.module
--- nodecomment.module	5 Oct 2008 14:26:22 -0000	1.3.2.15.2.6
+++ nodecomment.module	14 Feb 2009 07:05:16 -0000
@@ -811,7 +811,7 @@ function theme_nodecomment_wrapper($cont
 
 function theme_nodecomment($comment, $links = array()) {
   $output  = '<div class="comment'. ($comment->status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') .'">';
-  $output .= '<div class="subject">'. l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") .' '. theme('mark', $comment->new) ."</div>\n";
+  $output .= '<div class="subject">'. l($comment->subject, $_GET['q'], array('fragment' => 'comment-'. $comment->cid)) .' '. theme('mark', $comment->new) ."</div>\n";
   $output .= '<div class="credit">'. t('by %a on %b', array('%a' => theme('username', $comment), '%b' => format_date($comment->timestamp))) ."</div>\n";
   $output .= '<div class="body">'. $comment->comment .'</div>';
   $output .= '<div class="links">'. theme('links', $links) .'</div>';
