From 6ed3f966b7fcf2d623da8dfcbb63d681e79f41a2 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Fri, 24 Jul 2020 10:04:42 +0100 Subject: [PATCH] MDL-69353 admin: set page title when prompting for upgrade key. --- lib/upgradelib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/upgradelib.php b/lib/upgradelib.php index 6cb95b76e5c..06e9975c2c1 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -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();