mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-36780 add SESSION cleanup to web installer
This might help prevent some SESSION problems at the end of installation.
This commit is contained in:
parent
8cd6d1aa6e
commit
4f73591af3
1 changed files with 4 additions and 0 deletions
|
@ -376,6 +376,10 @@ if (during_initial_install()) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cleanup SESSION to make sure other code does not complain in the future.
|
||||||
|
unset($SESSION->has_timed_out);
|
||||||
|
unset($SESSION->wantsurl);
|
||||||
|
|
||||||
// at this stage there can be only one admin unless more were added by install - users may change username, so do not rely on that
|
// at this stage there can be only one admin unless more were added by install - users may change username, so do not rely on that
|
||||||
$adminids = explode(',', $CFG->siteadmins);
|
$adminids = explode(',', $CFG->siteadmins);
|
||||||
$adminuser = get_complete_user_data('id', reset($adminids));
|
$adminuser = get_complete_user_data('id', reset($adminids));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue