Commit 2026f92d authored by catch's avatar catch

Issue #1027936 by webflo, nicholasThompson: Comment Preprocess sets a links...

Issue #1027936 by webflo, nicholasThompson: Comment Preprocess sets a links class as a string, should be an array.
parent 3a056959
...@@ -1414,7 +1414,7 @@ function template_preprocess_comment(&$variables) { ...@@ -1414,7 +1414,7 @@ function template_preprocess_comment(&$variables) {
$uri = $comment->uri(); $uri = $comment->uri();
$permalink_uri = $comment->permalink(); $permalink_uri = $comment->permalink();
$uri['options'] += array('attributes' => array('class' => 'permalink', 'rel' => 'bookmark')); $uri['options'] += array('attributes' => array('class' => array('permalink'), 'rel' => 'bookmark'));
$variables['title'] = l($comment->subject->value, $uri['path'], $uri['options']); $variables['title'] = l($comment->subject->value, $uri['path'], $uri['options']);
$variables['permalink'] = l(t('Permalink'), $permalink_uri['path'], $permalink_uri['options']); $variables['permalink'] = l(t('Permalink'), $permalink_uri['path'], $permalink_uri['options']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment