]> git.mjollnir.org Git - moodle.git/commitdiff
ZIP_METHOD included in backup for future tests at restore time.
authorstronk7 <stronk7>
Sat, 16 Oct 2004 17:49:14 +0000 (17:49 +0000)
committerstronk7 <stronk7>
Sat, 16 Oct 2004 17:49:14 +0000 (17:49 +0000)
backup/backuplib.php

index 9314276cb714d133f9f951472059ffbf303da2e3..a82729cfe522f71c232bf606ac33af8d0bcd8c6a 100644 (file)
         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