commit cd264d83681ce1863b7fa6c77dabdf64028765a6 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 c566fa6..2f01b40 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -1175,7 +1175,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. @@ -1288,7 +1288,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); @@ -1526,7 +1526,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.