mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
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:
parent
c061b8d2a5
commit
740aa005dc
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user