Interchange delete old data and create temp structures. The first time

an error ocurred, because we were trying to access an no-existent dir.
This commit is contained in:
stronk7 2003-05-16 17:36:47 +00:00
parent c061b8d2a5
commit 740aa005dc

View File

@ -104,13 +104,6 @@
//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";
@ -120,6 +113,13 @@
$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";