Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
06cb9117
Commit
06cb9117
authored
Apr 28, 2020
by
Matteo Scaramuccia
Browse files
MDL-68536 core: Fix notice about undefined prop 'branch' in $CFG
parent
e049d306
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/classes/plugin_manager.php
View file @
06cb9117
...
...
@@ -752,7 +752,7 @@ class core_plugin_manager {
public
function
all_plugins_ok
(
$moodleversion
,
&
$failedplugins
=
array
(),
$branch
=
null
)
{
global
$CFG
;
if
(
empty
(
$branch
))
{
$branch
=
$CFG
->
branch
;
$branch
=
$CFG
->
branch
??
''
;
if
(
empty
(
$branch
))
{
// During initial install there is no branch set.
require
(
$CFG
->
dirroot
.
'/version.php'
);
...
...
Write
Preview
Supports
Markdown
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