Skip to content
Snippets Groups Projects
Commit 19730545 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2061967 by Maxis, sergeypavlenko, m1r1k: Remove calls to deprecated...

Issue #2061967 by Maxis, sergeypavlenko, m1r1k: Remove calls to deprecated global  in overlay module.
parent d009160c
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
......@@ -72,7 +72,7 @@ public function onRequest(GetResponseEvent $event) {
// Only act on html pages.
return;
}
global $user;
$user = \Drupal::currentUser();
$mode = overlay_get_mode();
......
......@@ -216,7 +216,7 @@ function overlay_page_alter(&$page) {
* @see http://drupal.org/node/890284
*/
function overlay_disable_message() {
global $user;
$user = \Drupal::currentUser();
$build = array();
if ($user->isAnonymous() || !$user->hasPermission('access overlay')) {
......
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