]> git.mjollnir.org Git - moodle.git/commitdiff
Interchange delete old data and create temp structures. The first time
authorstronk7 <stronk7>
Fri, 16 May 2003 17:36:47 +0000 (17:36 +0000)
committerstronk7 <stronk7>
Fri, 16 May 2003 17:36:47 +0000 (17:36 +0000)
an error ocurred, because we were trying to access an no-existent dir.

backup/backup_execute.html

index 46b55ae15cd27a753b333546687a719204bf830d..9e0bc141562656c1aac79d502d2b45794aeb0810 100644 (file)
     //Start the main ul
     echo "<ul>";
 
-    //Delete old_entries from backup tables
-    echo "<li>Deteting old data";
-    $status = backup_delete_old_data();
-    if (!$status) {
-        error ("An error has ocurred");
-    }
-
     //Check for temp and backup and backup_unique_code directory
     //Create them as needed
     echo "<li>Creating temporary structures";
         $status = clear_backup_dir($backup_unique_code);
     }
 
+    //Delete old_entries from backup tables
+    echo "<li>Deteting old data";
+    $status = backup_delete_old_data();
+    if (!$status) {
+        error ("An error has ocurred");
+    }
+
     //Create the moodle.xml file
     if ($status) {
         echo "<li>Creating xml file";