diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index e9cd043..5bf164d 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -484,7 +484,7 @@ function forum_taxonomy_term_delete(Term $term) { * comment_save() calls hook_comment_publish() for all published comments. */ function forum_comment_publish($comment) { - _forum_update_forum_index($comment->nid->value); + _forum_update_forum_index($comment->nid->target_id); } /** @@ -497,7 +497,7 @@ function forum_comment_update($comment) { // comment_save() calls hook_comment_publish() for all published comments, // so we need to handle all other values here. if (!$comment->status->value) { - _forum_update_forum_index($comment->nid->value); + _forum_update_forum_index($comment->nid->target_id); } } @@ -505,14 +505,14 @@ function forum_comment_update($comment) { * Implements hook_comment_unpublish(). */ function forum_comment_unpublish($comment) { - _forum_update_forum_index($comment->nid->value); + _forum_update_forum_index($comment->nid->target_id); } /** * Implements hook_comment_delete(). */ function forum_comment_delete($comment) { - _forum_update_forum_index($comment->nid->value); + _forum_update_forum_index($comment->nid->target_id); } /** diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index cff64e5..af7d157 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -419,9 +419,9 @@ function rdf_comment_load($comments) { // isn't needed until rdf_preprocess_comment() is called, but set it here // to optimize performance for websites that implement an entity cache. $comment->rdf_data['date'] = rdf_rdfa_attributes($comment->rdf_mapping['created'], $comment->created->value); - $comment->rdf_data['nid_uri'] = url('node/' . $comment->nid->value); - if ($comment->pid->value) { - $comment->rdf_data['pid_uri'] = url('comment/' . $comment->pid->value, array('fragment' => 'comment-' . $comment->pid->value)); + $comment->rdf_data['nid_uri'] = url('node/' . $comment->nid->target_id); + if ($comment->pid->target_id) { + $comment->rdf_data['pid_uri'] = url('comment/' . $comment->pid->target_id, array('fragment' => 'comment-' . $comment->pid->target_id)); } } } @@ -748,7 +748,7 @@ function rdf_preprocess_comment(&$variables) { $variables['rdf_metadata_attributes'][] = $parent_node_attributes; // Adds the relation to parent comment, if it exists. - if ($comment->pid->value != 0) { + if ($comment->pid->target_id != 0) { $parent_comment_attributes['rel'] = $comment->rdf_mapping['pid']['predicates']; // The parent comment URI is precomputed as part of the rdf_data so that // it can be cached as part of the entity. diff --git a/core/modules/search/search.module b/core/modules/search/search.module index a465e3a..5c67997 100644 --- a/core/modules/search/search.module +++ b/core/modules/search/search.module @@ -810,7 +810,7 @@ function search_node_update(Node $node) { */ function search_comment_insert($comment) { // Reindex the node when comments are added. - search_touch_node($comment->nid->value); + search_touch_node($comment->nid->target_id); } /** @@ -818,7 +818,7 @@ function search_comment_insert($comment) { */ function search_comment_update($comment) { // Reindex the node when comments are changed. - search_touch_node($comment->nid->value); + search_touch_node($comment->nid->target_id); } /** @@ -826,7 +826,7 @@ function search_comment_update($comment) { */ function search_comment_delete($comment) { // Reindex the node when comments are deleted. - search_touch_node($comment->nid->value); + search_touch_node($comment->nid->target_id); } /** @@ -834,7 +834,7 @@ function search_comment_delete($comment) { */ function search_comment_publish($comment) { // Reindex the node when comments are published. - search_touch_node($comment->nid->value); + search_touch_node($comment->nid->target_id); } /** @@ -842,7 +842,7 @@ function search_comment_publish($comment) { */ function search_comment_unpublish($comment) { // Reindex the node when comments are unpublished. - search_touch_node($comment->nid->value); + search_touch_node($comment->nid->target_id); } /** diff --git a/core/modules/tracker/tracker.module b/core/modules/tracker/tracker.module index d33a878..0eaa7d8 100644 --- a/core/modules/tracker/tracker.module +++ b/core/modules/tracker/tracker.module @@ -230,7 +230,7 @@ function tracker_comment_update($comment) { // comment_save() calls hook_comment_publish() for all published comments // so we need to handle all other values here. if ($comment->status->value != COMMENT_PUBLISHED) { - _tracker_remove($comment->nid->value, $comment->uid->value, $comment->changed->value); + _tracker_remove($comment->nid->target_id, $comment->uid->target_id, $comment->changed->value); } } @@ -241,21 +241,21 @@ function tracker_comment_update($comment) { * comment_save() calls hook_comment_publish() for all published comments. */ function tracker_comment_publish($comment) { - _tracker_add($comment->nid->value, $comment->uid->value, $comment->changed->value); + _tracker_add($comment->nid->target_id, $comment->uid->target_id, $comment->changed->value); } /** * Implements hook_comment_unpublish(). */ function tracker_comment_unpublish($comment) { - _tracker_remove($comment->nid->value, $comment->uid->value, $comment->changed->value); + _tracker_remove($comment->nid->target_id, $comment->uid->target_id, $comment->changed->value); } /** * Implements hook_comment_delete(). */ function tracker_comment_delete($comment) { - _tracker_remove($comment->nid->value, $comment->uid->value, $comment->changed->value); + _tracker_remove($comment->nid->target_id, $comment->uid->target_id, $comment->changed->value); } /**