Skip to content
Browse files

ZIP_METHOD included in backup for future tests at restore time.

  • Loading branch information...
1 parent 1e55f8c commit 736db01dc416c448d387871817b2ead23b149176 stronk7 committed Oct 16, 2004
Showing with 7 additions and 0 deletions.
  1. +7 −0 backup/backuplib.php
View
7 backup/backuplib.php
@@ -466,6 +466,13 @@ function backup_general_info ($bf,$preferences) {
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

0 comments on commit 736db01

Please sign in to comment.
Something went wrong with that request. Please try again.