From d752a8691f613b0f9e9acf4e988fe9a27acdf3d8 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 16 Oct 2004 17:49:14 +0000 Subject: [PATCH] ZIP_METHOD included in backup for future tests at restore time. --- backup/backuplib.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backup/backuplib.php b/backup/backuplib.php index 9314276cb7..a82729cfe5 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -466,6 +466,13 @@ fwrite ($bf,full_tag("DATE",2,false,$preferences->backup_unique_code)); //The original site wwwroot fwrite ($bf,full_tag("ORIGINAL_WWWROOT",2,false,$CFG->wwwroot)); + //The zip method used + if (!empty($CFG->zip)) { + $zipmethod = 'external'; + } else { + $zipmethod = 'internal'; + } + fwrite ($bf,full_tag("ZIP_METHOD",2,false,$zipmethod)); //Te includes tag fwrite ($bf,start_tag("DETAILS",2,true)); //Now, go to mod element of preferences to print its status -- 2.39.5