diff options
Diffstat (limited to 'modules/rdf')
-rw-r--r-- | modules/rdf/rdf.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rdf/rdf.module b/modules/rdf/rdf.module index d2790e2ec..a8d62fe22 100644 --- a/modules/rdf/rdf.module +++ b/modules/rdf/rdf.module @@ -508,7 +508,7 @@ function rdf_preprocess_node(&$variables) { // Adds RDFa markup annotating the number of comments a node has. if (isset($variables['node']->comment_count) && !empty($variables['node']->rdf_mapping['comment_count']['predicates'])) { // Annotates the 'x comments' link in teaser view. - if (isset($variables['content']['links']['#links']['comment-comments'])) { + if (isset($variables['content']['links']['comment']['#links']['comment-comments'])) { $comment_count_attributes['property'] = $variables['node']->rdf_mapping['comment_count']['predicates']; $comment_count_attributes['content'] = $variables['node']->comment_count; $comment_count_attributes['datatype'] = $variables['node']->rdf_mapping['comment_count']['datatype']; @@ -518,7 +518,7 @@ function rdf_preprocess_node(&$variables) { // set an empty rel attribute which triggers rule number 5. See // http://www.w3.org/TR/rdfa-syntax/#sec_5.5. $comment_count_attributes['rel'] = ''; - $variables['content']['links']['#links']['comment-comments']['attributes'] += $comment_count_attributes; + $variables['content']['links']['comment']['#links']['comment-comments']['attributes'] += $comment_count_attributes; } // In full node view, the number of comments is not displayed by // node.tpl.php so it is expressed in RDFa in the <head> tag of the HTML |