mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-69353 admin: set page title when prompting for upgrade key.
This commit is contained in:
parent
d8b0be3eb3
commit
6b6a083916
1 changed files with 1 additions and 0 deletions
|
@ -2439,6 +2439,7 @@ function check_upgrade_key($upgradekeyhash) {
|
||||||
if (isset($CFG->config_php_settings['upgradekey'])) {
|
if (isset($CFG->config_php_settings['upgradekey'])) {
|
||||||
if ($upgradekeyhash === null or $upgradekeyhash !== sha1($CFG->config_php_settings['upgradekey'])) {
|
if ($upgradekeyhash === null or $upgradekeyhash !== sha1($CFG->config_php_settings['upgradekey'])) {
|
||||||
if (!$PAGE->headerprinted) {
|
if (!$PAGE->headerprinted) {
|
||||||
|
$PAGE->set_title(get_string('upgradekeyreq', 'admin'));
|
||||||
$output = $PAGE->get_renderer('core', 'admin');
|
$output = $PAGE->get_renderer('core', 'admin');
|
||||||
echo $output->upgradekey_form_page(new moodle_url('/admin/index.php', array('cache' => 0)));
|
echo $output->upgradekey_form_page(new moodle_url('/admin/index.php', array('cache' => 0)));
|
||||||
die();
|
die();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue