Merge branch 'MDL-76680/400' of https://github.com/skodak/moodle into MOODLE_400_STABLE

This commit is contained in:
Jun Pataleta
2023-03-14 21:44:14 +08:00
+2
View File
@@ -827,6 +827,8 @@ if (empty($CFG->sessiontimeoutwarning)) {
$CFG->sessiontimeoutwarning = 20 * 60;
}
\core\session\manager::start();
// Prevent ignoresesskey hack from getting carried over to a next page.
unset($USER->ignoresesskey);
// Set default content type and encoding, developers are still required to use
// echo $OUTPUT->header() everywhere, anything that gets set later should override these headers.