1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 18:04:43 +02:00

MDL-21198 one more single_button + version bump to the new year (could not resit it)

This commit is contained in:
Petr Skoda 2010-01-03 20:54:36 +00:00
parent 169a5b545c
commit 8a13809318
2 changed files with 4 additions and 8 deletions

@ -200,13 +200,9 @@ if ($version > $CFG->version) { // upgrade
$PAGE->set_heading($stradministration);
$PAGE->set_cacheable(false);
echo $OUTPUT->header();
$continueform = new html_form();
$continueform->method = 'get';
$continueform->url = new moodle_url('index.php', array('confirmupgrade' => 1));
$cancelform = new html_form();
$cancelform->url = new moodle_url('index.php');
$cancelform->button->text = get_string('no');
echo $OUTPUT->confirm(get_string('upgradesure', 'admin', $a->newversion), $continueform, $cancelform);
$continueurl = new moodle_url('index.php', array('confirmupgrade' => 1));
$cancelurl = new moodle_url('index.php');
echo $OUTPUT->confirm(get_string('upgradesure', 'admin', $a->newversion), $continueurl, $cancelurl);
echo $OUTPUT->footer();
exit;

@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2009123000; // YYYYMMDD = date of the last version bump
$version = 2010010300; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0 dev (Build: 20100103)'; // Human-friendly version name