Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
19730545
Commit
19730545
authored
Oct 06, 2013
by
webchick
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/overlay/lib/Drupal/overlay/EventSubscriber/OverlaySubscriber.php
View file @
19730545
...
...
@@ -72,7 +72,7 @@ public function onRequest(GetResponseEvent $event) {
// Only act on html pages.
return
;
}
global
$u
ser
;
$user
=
\
Drupal
::
currentU
ser
()
;
$mode
=
overlay_get_mode
();
...
...
core/modules/overlay/overlay.module
View file @
19730545
...
...
@@ -216,7 +216,7 @@ function overlay_page_alter(&$page) {
* @see http://drupal.org/node/890284
*/
function
overlay_disable_message
()
{
global
$u
ser
;
$user
=
\
Drupal
::
currentU
ser
()
;
$build
=
array
();
if
(
$user
->
isAnonymous
()
||
!
$user
->
hasPermission
(
'access overlay'
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment