diff --git a/lib/Views/comment/Plugin/views/field/Link.php b/lib/Views/comment/Plugin/views/field/Link.php index 974ed8c380da8513ea68f8e968c9acf136b7f94d..5467f40346588e72da15a4a1f93a3251e8144161 100644 --- a/lib/Views/comment/Plugin/views/field/Link.php +++ b/lib/Views/comment/Plugin/views/field/Link.php @@ -61,7 +61,7 @@ function render_link($data, $values) { $text = !empty($this->options['text']) ? $this->options['text'] : t('view'); $comment = $this->get_value($values); $nid = $comment->nid; - $cid = $comment->cid; + $cid = $comment->id(); $this->options['alter']['make_link'] = TRUE; $this->options['alter']['html'] = TRUE; diff --git a/lib/Views/comment/Plugin/views/field/LinkEdit.php b/lib/Views/comment/Plugin/views/field/LinkEdit.php index 2d16ef6425b6e637c587b2f5d2a3f2b06bc09b14..85c12acacc8047fde684775b59f602b3ebadaa74 100644 --- a/lib/Views/comment/Plugin/views/field/LinkEdit.php +++ b/lib/Views/comment/Plugin/views/field/LinkEdit.php @@ -55,7 +55,7 @@ function render_link($data, $values) { $this->options['alter']['query'] = drupal_get_destination(); } - $this->options['alter']['path'] = "comment/" . $comment->cid . "/edit"; + $this->options['alter']['path'] = "comment/" . $comment->id() . "/edit"; return $text; } diff --git a/lib/Views/comment/Plugin/views/row/Rss.php b/lib/Views/comment/Plugin/views/row/Rss.php index 1dcde07d23c0f36805ac8d109057e90415137dc2..130db0716e994eec5139d056346381d2ec5576c1 100644 --- a/lib/Views/comment/Plugin/views/row/Rss.php +++ b/lib/Views/comment/Plugin/views/row/Rss.php @@ -129,7 +129,7 @@ function render($row) { ), array( 'key' => 'guid', - 'value' => 'comment ' . $comment->cid . ' at ' . $base_url, + 'value' => 'comment ' . $comment->id() . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'false'), ), ); @@ -156,10 +156,10 @@ function render($row) { $item = new stdClass(); $item->description = $item_text; - $item->title = $comment->subject; + $item->title = $comment->label(); $item->link = $comment->link; $item->elements = $comment->rss_elements; - $item->cid = $comment->cid; + $item->cid = $comment->id(); return theme($this->theme_functions(), array( 'view' => $this->view, diff --git a/lib/Views/comment/Plugin/views/row/View.php b/lib/Views/comment/Plugin/views/row/View.php index 642222cd7b9b01c42165ce88dcb57e40a7c22ac1..477ba61d34029848b464267dce44d762cf5a6a76 100644 --- a/lib/Views/comment/Plugin/views/row/View.php +++ b/lib/Views/comment/Plugin/views/row/View.php @@ -102,7 +102,7 @@ function pre_render($result) { $nids = array(); foreach ($cresult as $comment) { $comment->depth = count(explode('.', $comment->thread)) - 1; - $this->comments[$comment->cid] = $comment; + $this->comments[$comment->id()] = $comment; $nids[] = $comment->nid; } diff --git a/modules/comment.views.inc b/modules/comment.views.inc index 53146f714eb68a7762b040a5b5eb01ea0d2d3d2f..28c9d5a6f6fb900b665a5db938f5838f6675409f 100644 --- a/modules/comment.views.inc +++ b/modules/comment.views.inc @@ -614,7 +614,7 @@ function template_preprocess_views_view_row_comment(&$vars) { // Put the view on the node so we can retrieve it in the preprocess. $node->view = &$view; - $build = comment_view_multiple(array($comment->cid => $comment), $node, $plugin->options['view_mode']); + $build = comment_view_multiple(array($comment->id() => $comment), $node, $plugin->options['view_mode']); // If we're displaying the comments without links, remove them from the // renderable array. There is no way to avoid building them in the first // place (see comment_build_content()).