summaryrefslogtreecommitdiff
path: root/modules/rdf
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-14 21:04:45 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-14 21:04:45 +0000
commitab21e07bbd3ac303495a9cce99862d84bba0893e (patch)
tree7612531b2af662faeb33e6d46564a543c2cbbd78 /modules/rdf
parentf65a7fae273eb909cdcb366e0c23c6b4dab7e608 (diff)
downloadbrdo-ab21e07bbd3ac303495a9cce99862d84bba0893e.tar.gz
brdo-ab21e07bbd3ac303495a9cce99862d84bba0893e.tar.bz2
#878092 follow-up by sun, David_Rothstein: Fixed Regression from D7 alpha: themes are unable to render one group of node links separately from another.
Diffstat (limited to 'modules/rdf')
-rw-r--r--modules/rdf/rdf.module4
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