Commit cd9fc73b authored by webchick's avatar webchick
Browse files

Issue #2062243 by chertzog, johnmcc, m1r1k: Remove calls to deprecated global ...

Issue #2062243 by chertzog, johnmcc, m1r1k: Remove calls to deprecated global  in core/modules/node/node.pages.inc.
parent 40dd23d0
...@@ -86,7 +86,7 @@ function theme_node_add_list($variables) { ...@@ -86,7 +86,7 @@ function theme_node_add_list($variables) {
* @deprecated Use \Drupal\node\Controller\NodeController::add() * @deprecated Use \Drupal\node\Controller\NodeController::add()
*/ */
function node_add($node_type) { function node_add($node_type) {
global $user; $user = \Drupal::currentUser();
$type = $node_type->type; $type = $node_type->type;
$langcode = module_invoke('language', 'get_default_langcode', 'node', $type); $langcode = module_invoke('language', 'get_default_langcode', 'node', $type);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment