commit 73179731919ebdc79ed0847cfd9365b2f90a5c1e Author: Joel Pittet Date: Sun Oct 6 12:14:46 2013 -0700 fixed for 2053489 diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 2c63a3c..2e33a39 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -1266,7 +1266,7 @@ function comment_load($cid, $reset = FALSE) { * The number of new comments or FALSE if the user is not logged in. */ function comment_num_new($entity_id, $entity_type, $field_name = NULL, $timestamp = 0) { - $user = Drupal::currentUser(); + $user = \Drupal::currentUser(); if ($user->isAuthenticated() && \Drupal::moduleHandler()->moduleExists('history')) { // Retrieve the timestamp at which the current user last viewed this entity. @@ -1379,7 +1379,7 @@ function comment_get_display_page($cid, $instance) { * @param \Drupal\comment\CommentInterface $comment */ function comment_preview(CommentInterface $comment) { - $user = Drupal::currentUser(); + $user = \Drupal::currentUser(); $preview_build = array(); $entity = entity_load($comment->entity_type->value, $comment->entity_id->value); @@ -1617,7 +1617,7 @@ function template_preprocess_comment(&$variables) { function theme_comment_post_forbidden($variables) { $entity = $variables['commented_entity']; $field_name = $variables['field_name']; - $user = Drupal::currentUser(); + $user = \Drupal::currentUser(); // Since this is expensive to compute, we cache it so that a page with many // comments only has to query the database once for all the links.