MDL-12231 fixed applying of CFG defaults during initial install phase; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2007-11-17 21:21:37 +00:00
parent 64f592adf3
commit afdde5a117

View File

@ -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"));