Merge branch 'MDL-69353-38' of https://github.com/paulholden/moodle into MOODLE_38_STABLE

This commit is contained in:
Andrew Nicols
2020-08-12 11:22:59 +08:00
+1
View File
@@ -2399,6 +2399,7 @@ function check_upgrade_key($upgradekeyhash) {
if (isset($CFG->config_php_settings['upgradekey'])) {
if ($upgradekeyhash === null or $upgradekeyhash !== sha1($CFG->config_php_settings['upgradekey'])) {
if (!$PAGE->headerprinted) {
$PAGE->set_title(get_string('upgradekeyreq', 'admin'));
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgradekey_form_page(new moodle_url('/admin/index.php', array('cache' => 0)));
die();