diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-23 19:47:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-23 19:47:31 +0000 |
commit | cd9a37e50dfd2aec75db08a3eac00c46082b5dbc (patch) | |
tree | 364fea08826c800304cbeb16adfdc0305405673a /modules/comment | |
parent | 7bf8499835905ba7c4eb603c65af1ee3bfd47779 (diff) | |
download | brdo-cd9a37e50dfd2aec75db08a3eac00c46082b5dbc.tar.gz brdo-cd9a37e50dfd2aec75db08a3eac00c46082b5dbc.tar.bz2 |
- Patch #819214 by bleen18: the '#' marking comment permalinks is just weird and untranslatable.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 3 insertions, 1 deletions
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); |