]> git.mjollnir.org Git - moodle.git/commitdiff
Minor change to allow continue after upgrade_backup
authorstronk7 <stronk7>
Sat, 2 Aug 2003 10:32:57 +0000 (10:32 +0000)
committerstronk7 <stronk7>
Sat, 2 Aug 2003 10:32:57 +0000 (10:32 +0000)
backup/backup.php

index 70353184f688ac9975149e2c748b51f9e706038d..57781292a6570e8124a7f31eb73bdd6477690e9b 100644 (file)
     backup_required_functions();
     
     //Check backup_version
-    upgrade_backup_db("backup.php");
+    if ($id) {
+        $linkto = "backup.php?id=".$id;
+    } else {
+        $linkto = "backup.php";
+    }
+    upgrade_backup_db($linkto);
 
     //Get strings
     $strcoursebackup = get_string("coursebackup");