summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-01 22:01:56 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-01 22:01:56 +0000
commit43b201df91bb883a9e3f95fb3244ee8db0f11891 (patch)
treef80235ca1fd46e7e0488f02af2e17b0987572a0e
parent00271e741f7d4825c76b1db21a7c55b250f209e9 (diff)
downloadbrdo-43b201df91bb883a9e3f95fb3244ee8db0f11891.tar.gz
brdo-43b201df91bb883a9e3f95fb3244ee8db0f11891.tar.bz2
- Patch #470866 by catch: comment links should use 'html'.
-rw-r--r--modules/comment/comment.module31
1 files changed, 21 insertions, 10 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 80f008450..170d098e2 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -436,7 +436,8 @@ function comment_node_view($node, $teaser) {
'title' => format_plural($node->comment_count, '1 comment', '@count comments'),
'href' => "node/$node->nid",
'attributes' => array('title' => t('Jump to the first comment of this posting.')),
- 'fragment' => 'comments'
+ 'fragment' => 'comments',
+ 'html' => TRUE,
);
$new = comment_num_new($node->nid);
@@ -446,7 +447,8 @@ function comment_node_view($node, $teaser) {
'href' => "node/$node->nid",
'query' => comment_new_page_count($node->comment_count, $new, $node),
'attributes' => array('title' => t('Jump to the first new comment of this posting.')),
- 'fragment' => 'new'
+ 'fragment' => 'new',
+ 'html' => TRUE,
);
}
}
@@ -457,7 +459,8 @@ function comment_node_view($node, $teaser) {
'title' => t('Add new comment'),
'href' => "comment/reply/$node->nid",
'attributes' => array('title' => t('Add a new comment to this page.')),
- 'fragment' => 'comment-form'
+ 'fragment' => 'comment-form',
+ 'html' => TRUE,
);
}
else {
@@ -477,7 +480,8 @@ function comment_node_view($node, $teaser) {
'title' => t('Add new comment'),
'href' => "comment/reply/$node->nid",
'attributes' => array('title' => t('Share your thoughts and opinions related to this posting.')),
- 'fragment' => 'comment-form'
+ 'fragment' => 'comment-form',
+ 'html' => TRUE,
);
}
}
@@ -999,20 +1003,24 @@ function comment_links($comment, $return = 1) {
if (user_access('administer comments') && user_access('post comments')) {
$links['comment_delete'] = array(
'title' => t('delete'),
- 'href' => "comment/delete/$comment->cid"
+ 'href' => "comment/delete/$comment->cid",
+ 'html' => TRUE,
);
$links['comment_edit'] = array(
'title' => t('edit'),
- 'href' => "comment/edit/$comment->cid"
+ 'href' => "comment/edit/$comment->cid",
+ 'html' => TRUE,
);
$links['comment_reply'] = array(
'title' => t('reply'),
- 'href' => "comment/reply/$comment->nid/$comment->cid"
+ 'href' => "comment/reply/$comment->nid/$comment->cid",
+ 'html' => TRUE,
);
if ($comment->status == COMMENT_NOT_PUBLISHED) {
$links['comment_approve'] = array(
'title' => t('approve'),
- 'href' => "comment/approve/$comment->cid"
+ 'href' => "comment/approve/$comment->cid",
+ 'html' => TRUE,
);
}
}
@@ -1020,17 +1028,20 @@ function comment_links($comment, $return = 1) {
if (comment_access('edit', $comment)) {
$links['comment_edit'] = array(
'title' => t('edit'),
- 'href' => "comment/edit/$comment->cid"
+ 'href' => "comment/edit/$comment->cid",
+ 'html' => TRUE,
);
}
$links['comment_reply'] = array(
'title' => t('reply'),
- 'href' => "comment/reply/$comment->nid/$comment->cid"
+ 'href' => "comment/reply/$comment->nid/$comment->cid",
+ 'html' => TRUE,
);
}
else {
$node = node_load($comment->nid);
$links['comment_forbidden']['title'] = theme('comment_post_forbidden', $node);
+ $links['comment_forbidden']['html'] = TRUE;
}
}