mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-19787 Migrated choose_from_menu to the new $OUTPUT->select_menu() function
This commit is contained in:
parent
6c843bbcde
commit
816086f1b8
@ -189,8 +189,13 @@ if ($version > $CFG->version) { // upgrade
|
||||
if (empty($confirmupgrade)) {
|
||||
$navigation = build_navigation(array(array('name'=>$strdatabasechecking, 'link'=>null, 'type'=>'misc')));
|
||||
print_header($strdatabasechecking, $stradministration, $navigation, '', '', false, ' ', ' ');
|
||||
$formcontinue = new html_form();
|
||||
$formcontinue->button->label = get_string('yes');
|
||||
$formcontinue->url = new moodle_url('index.php', array('confirmupgrade' => 1));
|
||||
$formcancel = new html_form();
|
||||
$formcancel->url = new moodle_url('index.php');
|
||||
echo $OUTPUT->confirm(get_string('upgradesure', 'admin', $a->newversion), $formcontinue, $formcancel);
|
||||
|
||||
notice_yesno(get_string('upgradesure', 'admin', $a->newversion), 'index.php?confirmupgrade=1', 'index.php');
|
||||
print_footer();
|
||||
exit;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user