Skip to content
Snippets Groups Projects
Commit cd9fc73b authored by Angie Byron's avatar Angie Byron
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -86,7 +86,7 @@ function theme_node_add_list($variables) {
* @deprecated Use \Drupal\node\Controller\NodeController::add()
*/
function node_add($node_type) {
global $user;
$user = \Drupal::currentUser();
$type = $node_type->type;
$langcode = module_invoke('language', 'get_default_langcode', 'node', $type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment