Commit 4fac690a authored by Peter Burnett's avatar Peter Burnett
Browse files

MDL-59562 core: changed branch behaviour during initial install.

parent 147a895a
......@@ -753,6 +753,13 @@ class core_plugin_manager {
global $CFG;
if (empty($branch)) {
$branch = $CFG->branch;
if (empty($branch)) {
// During initial install there is no branch set.
require($CFG->dirroot . '/version.php');
$branch = (int)$branch;
// Force CFG->branch to int value during install.
$CFG->branch = $branch;
}
}
$return = true;
foreach ($this->get_plugins() as $type => $plugins) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment