MDL-69353 admin: set page title when prompting for upgrade key.

This commit is contained in:
Paul Holden 2020-07-24 10:04:42 +01:00
parent 94fdac9117
commit 15af3240b3

View File

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