From e9346b95b7b4538cf52d1b5d8afcae1bd72d4c6b Mon Sep 17 00:00:00 2001
From: stronk7 <stronk7>
Date: Fri, 1 Aug 2003 23:46:49 +0000
Subject: [PATCH] backup_release is now saved to config too. It was losed in
 lastest changes to update module facility !!

---
 backup/lib.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backup/lib.php b/backup/lib.php
index d0491e3a5b..9bc0c6c015 100644
--- a/backup/lib.php
+++ b/backup/lib.php
@@ -303,7 +303,7 @@
             $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);
@@ -326,7 +326,7 @@
             $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);
-- 
2.39.5