From 7a88ed3bb9c859b5f23a80734f6581890c51a322 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 29 Aug 2013 09:10:54 -0700 Subject: [PATCH] Issue #2062353 by sergeypavlenko: Remove calls to deprecated global in translation module. --- core/modules/translation/translation.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/translation/translation.module b/core/modules/translation/translation.module index 9843f069d0c0..093aeee7c9c8 100644 --- a/core/modules/translation/translation.module +++ b/core/modules/translation/translation.module @@ -152,7 +152,7 @@ function translation_node_create_access($account) { function translation_user_can_translate_node($node, $account = NULL) { // If no user object is supplied, the access check is for the current user. if (empty($account)) { - $account = $GLOBALS['user']; + $account = Drupal::currentUser(); } return node_access('view', $node, $account) && (user_access('translate all content', $account) || ($node->getAuthorId() == $account->id() && user_access('translate own content', $account))); }