Skip to content

Commit

Permalink
Included language support.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 29, 2003
1 parent 2aa7d92 commit a42de97
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions backup/restore_precheck.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,32 @@
$status = check_and_create_backup_dir($backup_unique_code);
//Empty dir
if ($status) {
echo "<li>Creating temp dir";
echo "<li>".get_string("creatingtemporarystructures");
$status = clear_backup_dir($backup_unique_code);
}

//Now delete old data and directories under dataroot/temp/backup
if ($status) {
echo "<li>Cleaning old data";
echo "<li>".get_string("deletingolddata");
$status = backup_delete_old_data();
}

//Now copy he zip file to dataroot/temp/backup/backup_unique_code
if ($status) {
echo "<li>".get_string("copyingzipfile");
$status = backup_copy_file($file,$CFG->dataroot."/temp/backup/".$backup_unique_code."/".basename($file));
}

//Now unzip the file
if ($status) {
echo "<li>Retrieving backup file";
echo "<li>".get_string("unzippingbackup");
$status = restore_unzip ($CFG->dataroot."/temp/backup/".$backup_unique_code."/".basename($file),$moodle_home);
}

//Now check for the moodle.xml file
if ($status) {
$xml_file = $CFG->dataroot."/temp/backup/".$backup_unique_code."/moodle.xml";
echo "<li>Checking backup file";
echo "<li>".get_string("checkingbackup");
$status = restore_check_moodle_file ($xml_file);
}

Expand All @@ -82,7 +83,7 @@

//Now read the info tag (all)
if ($status) {
echo "<li>Reading info from file";
echo "<li>".get_string("readinginfofrombackup");
//Reading info from file
$info = restore_read_xml_info ($xml_file);
//Reading course_header from file
Expand Down

0 comments on commit a42de97

Please sign in to comment.