]> git.mjollnir.org Git - moodle.git/commitdiff
backup_release is now saved to config too. It was losed in lastest changes
authorstronk7 <stronk7>
Fri, 1 Aug 2003 23:46:49 +0000 (23:46 +0000)
committerstronk7 <stronk7>
Fri, 1 Aug 2003 23:46:49 +0000 (23:46 +0000)
to update module facility !!

backup/lib.php

index d0491e3a5bda0f55889f5fcb9b3b9366c115e2cb..9bc0c6c0158dfcfd81852c1c81e1f242255f805a 100644 (file)
             $db->debug=true;
             if (modify_database("$CFG->dirroot/backup/db/$CFG->dbtype.sql")) {
                 $db->debug = false;
-                if (set_config("backup_version", $backup_version)) {
+                if (set_config("backup_version", $backup_version) and set_config("backup_release", $backup_release)) {
                     notify(get_string("databasesuccess"), "green");
                     notify(get_string("databaseupgradebackups", "", $backup_release));
                     print_continue($continueto);
             $db->debug=true;
             if (backup_upgrade($CFG->backup_version)) {
                 $db->debug=false;
-                if (set_config("backup_version", $backup_version)) {
+                if (set_config("backup_version", $backup_version) and set_config("backup_release", $backup_release)) {
                     notify(get_string("databasesuccess"), "green");
                     notify(get_string("databaseupgradebackups", "", $backup_release));
                     print_continue($continueto);