Skip to content

Commit

Permalink
Merge branch 'MDL-69353' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
andrewnicols committed Aug 12, 2020
2 parents 452497d + 15af324 commit b7146cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/upgradelib.php
Original file line number Diff line number Diff line change
@@ -2439,6 +2439,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();

0 comments on commit b7146cd

Please sign in to comment.