From: martin Date: Fri, 27 Sep 2002 06:13:59 +0000 (+0000) Subject: Nicer way to find out the major changes since the last version. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b35f948b97862774249c724ad90892ea7e2de529;p=moodle.git Nicer way to find out the major changes since the last version. RELEASES.html shows the changes, and these are displayed during an upgrade. --- diff --git a/RELEASE.html b/RELEASE.html new file mode 100644 index 0000000000..ec151aca19 --- /dev/null +++ b/RELEASE.html @@ -0,0 +1,44 @@ +

Release notes for Moodle 1.0.5

+ +

New features (since 1.0.4):

+ + + diff --git a/admin/index.php b/admin/index.php index 885b16ff17..2b8b40a173 100644 --- a/admin/index.php +++ b/admin/index.php @@ -64,12 +64,12 @@ $a->newversion = $version; $strdatabasechecking = get_string("databasechecking", "", $a); $strdatabasesuccess = get_string("databasesuccess"); - print_header($strdatabaseupgrades, $strdatabaseupgrades, $strdatabaseupgrades); + print_header($strdatabasechecking, $strdatabasechecking, $strdatabasechecking); notify($strdatabasechecking); $db->debug=true; if (upgrade_moodle($CFG->version)) { $db->debug=false; - if (set_field("config", "value", "$version", "name", "version")) { + if (set_config("version", $version)) { notify($strdatabasesuccess); print_continue("index.php"); die; @@ -85,12 +85,11 @@ } } else { - $dversion->name = "version"; - $dversion->value = $version; $strdatabaseupgrades = get_string("databaseupgrades"); print_header($strdatabaseupgrades, $strdatabaseupgrades, $strdatabaseupgrades); - if (insert_record("config", $dversion)) { - notify("You are currently using Moodle version $release ($version)"); + + if (set_config("version", $version)) { + notify("You are currently using Moodle version $version (Release $release)"); print_continue("index.php"); die; } else { @@ -106,14 +105,19 @@ /// Updated human-readable release version if necessary - if ($CFG->release) { - if ($release <> $drelease) { // Update the release version - set_field("config", "value", "$release", "name", "release"); + if ($release <> $CFG->release) { // Update the release version + $strdatabaseupgrades = get_string("databaseupgrades"); + print_header($strdatabaseupgrades, $strdatabaseupgrades, $strdatabaseupgrades); + print_heading($release); + if (!set_config("release", $release)) { + notify("ERROR: Could not update release version in database!!"); } - } else { - $drelease->name = "release"; - $drelease->value = $release; - insert_record("config", $drelease); + print_continue("index.php"); + print_simple_box_start("CENTER"); + include("$CFG->dirroot/RELEASE.html"); + print_simple_box_end(); + print_continue("index.php"); + exit; }