Skip to content

Commit

Permalink
Now ORIGINAL_WWWROOT is saved in backup and restored too!!
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed May 6, 2004
1 parent 1ea2e64 commit c9c8984
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backup/backuplib.php
Expand Up @@ -457,6 +457,8 @@ function backup_general_info ($bf,$preferences) {
fwrite ($bf,full_tag("BACKUP_RELEASE",2,false,$preferences->backup_release));
//The date
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));
//Te includes tag
fwrite ($bf,start_tag("DETAILS",2,true));
//Now, go to mod element of preferences to print its status
Expand Down
4 changes: 4 additions & 0 deletions backup/restore_execute.html
Expand Up @@ -10,6 +10,10 @@
$restore = $SESSION->restore;
}

//Add info->original_wwwroot to $restore to be able to use it in all the restore process
//(mainly when decoding internal links)
$restore->original_wwwroot = $info->original_wwwroot;

//Check login
require_login();

Expand Down
3 changes: 3 additions & 0 deletions backup/restorelib.php
Expand Up @@ -1946,6 +1946,9 @@ function endElementInfo($parser, $tagName) {
case "DATE":
$this->info->backup_date = $this->getContents();
break;
case "ORIGINAL_WWWROOT":
$this->info->original_wwwroot = $this->getContents();
break;
}
}
if ($this->tree[3] == "DETAILS") {
Expand Down

0 comments on commit c9c8984

Please sign in to comment.