summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-25 10:37:25 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-25 10:37:25 +0000
commitbb71ce1fedcb344a58bbf591f1d93b6ce6336558 (patch)
treef4c730aa601b8124b30eb698840662e9a3778f09 /themes
parent13f9882979c3cef003fba656991f88b6cbe9f128 (diff)
downloadbrdo-bb71ce1fedcb344a58bbf591f1d93b6ce6336558.tar.gz
brdo-bb71ce1fedcb344a58bbf591f1d93b6ce6336558.tar.bz2
#186480 by John Morahan: update chameleon_comment() to latest Drupal API
Diffstat (limited to 'themes')
-rw-r--r--themes/chameleon/chameleon.theme6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme
index a71a70b3c..54799ea3e 100644
--- a/themes/chameleon/chameleon.theme
+++ b/themes/chameleon/chameleon.theme
@@ -152,15 +152,15 @@ function chameleon_node($node, $teaser = 0, $page = 0) {
return $output;
}
-function chameleon_comment($comment, $links = "") {
+function chameleon_comment($comment, $node, $links = array()) {
$submitted['comment_submitted'] = array(
'title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))),
'html' => TRUE);
$output = "<div class=\"comment". ($comment->status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') ."\">\n";
- $output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") ."</h3>\n";
+ $output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) ."</h3>\n";
$output .= " <div class=\"content\">". $comment->comment;
- if ($signature) {
+ if (!empty($signature)) {
$output .= " <div class=\"clear-block\">";
$output .= "<div>—</div>\n";
$output .= $signature ."\n";