=== modified file 'includes/theme.inc' --- includes/theme.inc 2006-10-17 08:38:16 +0000 +++ includes/theme.inc 2006-10-18 08:13:55 +0000 @@ -530,12 +530,18 @@ function theme_links($links, $attributes $extra_class = ($i == 1) ? 'first ' : (($i == $num_links) ? 'last ' : ''); $output .= '
  • '; + // Is the title HTML? + $html = isset($link['html']) && $link['html']; + if ($link['href']) { - $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment']); + $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html); } else if ($link['title']) { //Some links are actually not links, but we wrap these in for adding title and class attributes - $output .= ''. check_plain($link['title']) .''; + if (!$html) { + $link['title'] = check_plain($link['title']); + } + $output .= ''. $link['title'] .''; } $i++; === modified file 'modules/comment/comment.module' --- modules/comment/comment.module 2006-10-17 08:45:51 +0000 +++ modules/comment/comment.module 2006-10-18 08:16:04 +0000 @@ -230,7 +230,7 @@ function comment_link($type, $node = NUL ); } else { - $links['comment_forbidden']['#title'] = theme('comment_post_forbidden', $node->nid); + $links['comment_forbidden']['title'] = theme('comment_post_forbidden', $node->nid); } } } @@ -252,7 +252,7 @@ function comment_link($type, $node = NUL } } else { - $links['comment_forbidden']['#title'] = theme('comment_post_forbidden', $node->nid); + $links['comment_forbidden']['title'] = theme('comment_post_forbidden', $node->nid); } } } @@ -261,6 +261,9 @@ function comment_link($type, $node = NUL if ($type == 'comment') { $links = comment_links($node, $teaser); } + if (isset($links['comment_forbidden'])) { + $links['comment_forbidden']['html'] = TRUE; + } return $links; } @@ -735,7 +738,7 @@ function comment_links($comment, $return ); } else { - $links['comment_forbidden']['#title'] = theme('comment_post_forbidden', $comment->nid); + $links['comment_forbidden']['title'] = theme('comment_post_forbidden', $comment->nid); } }