mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-12231 fixed applying of CFG defaults during initial install phase; merged from MOODLE_19_STABLE
This commit is contained in:
parent
64f592adf3
commit
afdde5a117
@ -6,7 +6,12 @@
|
||||
// are added to them.
|
||||
|
||||
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
|
||||
$hassiteconfig = has_capability('moodle/site:config', $systemcontext);
|
||||
if (get_site()) {
|
||||
$hassiteconfig = has_capability('moodle/site:config', $systemcontext);
|
||||
} else {
|
||||
// installation starts - no permission checks
|
||||
$hassiteconfig = true;
|
||||
}
|
||||
|
||||
$ADMIN->add('root', new admin_externalpage('adminnotifications', get_string('notifications'), "$CFG->wwwroot/$CFG->admin/index.php"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user