Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
19730545
Commit
19730545
authored
Oct 06, 2013
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
core/modules/overlay/lib/Drupal/overlay/EventSubscriber/OverlaySubscriber.php
.../lib/Drupal/overlay/EventSubscriber/OverlaySubscriber.php
+1
-1
core/modules/overlay/overlay.module
core/modules/overlay/overlay.module
+1
-1
No files found.
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