MDL-12231 fixed applying of CFG defaults during initial install phase; merged from MOODLE_19_STABLE
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user