From cd9a37e50dfd2aec75db08a3eac00c46082b5dbc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 23 Sep 2010 19:47:31 +0000 Subject: - Patch #819214 by bleen18: the '#' marking comment permalinks is just weird and untranslatable. --- modules/comment/comment.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/comment') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index e5d1337ba..fd46cd7c0 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2204,8 +2204,10 @@ function template_preprocess_comment(&$variables) { $variables['signature'] = $comment->signature; $uri = entity_uri('comment', $comment); + $uri['options'] += array('attributes' => array('class' => 'permalink', 'rel' => 'bookmark')); + $variables['title'] = l($comment->subject, $uri['path'], $uri['options']); - $variables['permalink'] = l('#', $uri['path'], $uri['options']); + $variables['permalink'] = l(t('Permalink'), $uri['path'], $uri['options']); // Preprocess fields. field_attach_preprocess('comment', $comment, $variables['elements'], $variables); -- cgit v1.2.3