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
a18f9c6e
Commit
a18f9c6e
authored
Oct 16, 2013
by
alexpott
Browse files
Issue
#2061949
by m1r1k, Garbar, joelpittet: Remove calls to deprecated global $user in update.php.
parent
b201c054
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/update.php
View file @
a18f9c6e
...
...
@@ -342,7 +342,7 @@ function update_access_denied_page() {
* TRUE if the current user should be granted access, or FALSE otherwise.
*/
function
update_access_allowed
()
{
global
$u
ser
;
$user
=
\
Drupal
::
currentU
ser
()
;
// Allow the global variable in settings.php to override the access check.
if
(
settings
()
->
get
(
'update_free_access'
))
{
...
...
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